quill-emoji icon indicating copy to clipboard operation
quill-emoji copied to clipboard

feat: Stricter querySelector for toolbar tab changes

Open cedricversluys opened this issue 2 years ago • 0 comments

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 name active.

Solution

I added some further specification, to make sure the querySelector always selects the correct element.

cedricversluys avatar Jul 26 '22 14:07 cedricversluys