When switching tabs in the emoji toolbar, it used document.querySelector('.active') to select the tab element. However, this is very generic and caused bugs in my application, because the quill editor is inside another tab view, also using the class name active.
Solution
I added some further specification, to make sure the querySelector always selects the correct element.
Problem
When switching tabs in the emoji toolbar, it used
document.querySelector('.active')
to select the tab element. However, this is very generic and caused bugs in my application, because the quill editor is inside another tab view, also using the class nameactive
.Solution
I added some further specification, to make sure the querySelector always selects the correct element.