react-editor-js icon indicating copy to clipboard operation
react-editor-js copied to clipboard

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

Open noahhai opened this issue 3 years ago • 0 comments

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 avatar Oct 08 '22 20:10 noahhai