Jungwoo-An / react-editor-js

⚛️📝The unofficial editor-js component for React
https://codesandbox.io/s/react-editor-js-v2-34bfl
MIT License
940 stars 77 forks source link

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

Open noahhai opened 1 year ago

noahhai commented 1 year ago

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