codex-team / codex-team/editor.js

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

Open
#2,079 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.