Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome: [Violation] Added non-passive event listener... breaking onChange #211

Open
noahhai opened this issue Oct 8, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@noahhai
Copy link

noahhai commented Oct 8, 2022

Environment

Packages:
"@editorjs/editorjs": "2.25.0",
"react-editor-js": "2.1.0",

Chrome:
Version 106.0.5249.91 (Official Build) (x86_64)

Describe

In Chrome, as of at least above version, onChange does not fire on changes within a data block. It only fires when selecting a new datablock (not even switching between two existing blocks).

I checked in Firefox and everything works fine. I also tested in your basic Codesandbox example and it works there, but on Chrome it's not working and seems to be related to this error:

[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

@noahhai noahhai added the bug Something isn't working label Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant