react-quill icon indicating copy to clipboard operation
react-quill copied to clipboard

Listener added for a 'DOMNodeInserted' mutation event. This event type is deprecated, and will be removed from this browser very soon. Usage of this event listener will cause performance issues today, and represents a large risk of future site breakage

Open Ali-Milani-13 opened this issue 1 year ago • 3 comments

Hello. I've noticed, when you use react-quill it gives me the warning that I've mentioned in the title. according to this issue(3806) in the quill.js repo, it has been fixed in the version 2.0.0 of the quill js. however, this issue is still present in the react-quill.

according to the react-quill source code, this warning, comes from this part of the code:

    _this.domNode.addEventListener('DOMNodeInserted', function () {});

which is located at quill/dist/quill.js. I suppose, react-quill, uses the older version of the quill.js

Ali-Milani-13 avatar Jun 18 '24 05:06 Ali-Milani-13

This repository is not being maintained, so I'm maintaining a fork in the interim. Have you tried replacing react-quill with the forked react-quill-new? The fork updates the underlying Quill dependency that uses the deprecated event. Also follow https://github.com/zenoamaro/react-quill/pull/973 for updates on that.

VaguelySerious avatar Jul 21 '24 08:07 VaguelySerious

怎么处理这个问题呢,急救

you-sunshine avatar Feb 12 '25 07:02 you-sunshine

@you-sunshine 您试过使用我的react-quill-new吗?

VaguelySerious avatar Feb 12 '25 19:02 VaguelySerious