zenoamaro / react-quill

A Quill component for React.
https://zenoamaro.github.io/react-quill
MIT License
6.62k stars 914 forks source link

deprecated issue #988

Open tanzeel-512 opened 3 weeks ago

tanzeel-512 commented 3 weeks ago

Warning: findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference.

[Deprecation] 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 imminent site breakage. Consider using MutationObserver instead.

hugopqt commented 2 weeks ago

Yes so same issue here, I use "react-quill": "^2.0.0" in my react app, and in the browser I receive "quill.js:4233 [Deprecation] 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 imminent site breakage. Consider using MutationObserver instead. See https://chromestatus.com/feature/5083947249172480 for more information." I was hoping it would be fix it in 2.0.0 but still I receive this warning, knowing that there wont be mutation events in Chrome 127 (going stable on July 30 2024) it seems like a big issue for us, any fix coming in the next weeks?

VaguelySerious commented 3 days ago

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 to use the newer API instead. Also follow https://github.com/zenoamaro/react-quill/pull/973 for updates on that.