editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

Editor.js stealing focus from modals by use of useCapture flag

Open applegrew opened this issue 3 years ago • 0 comments

I am using version 2.24.3 and I see that it adds a capturing keydown event listener on document. Because of that when someone types in a modal dialog on the page with Editor.js, it tends to steal focus away causing issues.

How do I fix that, because I can now no longer use stopPropagation?

Screenshot 2022-06-14 at 1 17 14 AM

applegrew avatar Jun 13 '22 19:06 applegrew