pops up 2 errors when i try to dismount whole burger
pacman-city opened this issue · 2 comments
Hello, this is very usefull pachage.
I've got some errors:
Element with ID 'page-wrap' not found
Element with ID 'outer-container' not found
Error happends every time when i replace menu component(delete) with somthing else. I can't figure out why. Btw app does not crashes.
Hi @byteofmonkey,
When the menu component mounts, it adds styles to your page wrapper and outer container elements. When it unmounts (which it sounds like you are doing) it tries to remove those styles.
The error means it cannot find those elements in the DOM. This would happen if you already removed those elements.
It shouldn't affect any functionality if you have removed them, so you have two options:
- Remove the menu before you remove the page wrapper and outer container elements
- Just ignore the error
I hope that helps.
Thanks a lot! That's gotta be helpful. Or I'll have to follow option two)