Closed caseycesari closed 8 years ago
This does fix the bug, but I'm worried that if we continue to make ad-hoc changes to the tree using jQuery, we'll eventually begin to encounter the same sort of weird UI glitches that occurred in the old layer selector.
+1 Tested
After looking into it more, I was able to unhighlight the "i" icon by updating the state instead of removing the class. See 8abf8a1694e4346fb1e88c56aa515c5133c26e53.
Integrating the layer menu into state updates is a little tricker because of the dynamic nature of the menu. I'm hesitant to leave 2ef741a9788d9be17ffde337ac9990d37afa8206 as is since it only involved removing two lines of code, but I can spend some more time changing how it works if you think it's worth it.
I think this is good enough for now. Messing with the layer menu does look tricky.
Fixes issues with layer icon highlight state. See commit messages for details.
Testing
...
)....
icon should stay highlighted and visible.Connects to #43