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

[Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event.

Open Aaronliu2016 opened this issue 2 years ago • 53 comments

Chrome console shows this warning information:

[Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (<URL>) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Is this caused by the quill.js version?

Aaronliu2016 avatar Aug 02 '23 11:08 Aaronliu2016

https://github.com/quilljs/quill/issues/3806 update quill to 2.0.0

axolo avatar Aug 03 '23 06:08 axolo

hello, any predictions for an update to version 2.0?

leeobrum avatar Aug 04 '23 18:08 leeobrum

Hello, same problem here, any news ?

AnthonyRuelle avatar Aug 16 '23 15:08 AnthonyRuelle

Facing performance issues because of this! An update would be helpful

mageshk98 avatar Aug 18 '23 14:08 mageshk98

Any update on this?

antrmarq avatar Aug 21 '23 18:08 antrmarq

got the same issue.

YouSour avatar Aug 29 '23 04:08 YouSour

Have to switch to tiptap instead of quill. Not as easy as vue-quill but the vue3 sample of tiptap is really clear. guess what, its performance is way much better.

Aaronliu2016 avatar Aug 29 '23 09:08 Aaronliu2016

I got the same issue on vue-quill, can someone recommend rich text editor that can embed video from youtube or any other media sites which will be compatible to vue js 3

JelynValcorza avatar Aug 30 '23 07:08 JelynValcorza

I am getting this warning on Firefox Use of Mutation Events is deprecated. Use MutationObserver instead. On google Chrome Warning is [Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Where exactly we need to use MutationObserver Or quick fix update will be great. We urgently need to fix this people are moving to other editor due to this warning.

rahul37865 avatar Sep 01 '23 12:09 rahul37865

Also having this issue with vanilla js quil. Really need to fix this quick plz, or I'll have to move to a different editor.

Error is coming from this line in the following code:

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

var Scroll = function(_Parchment$Scroll) {
                    _inherits(Scroll, _Parchment$Scroll);

                    function Scroll(domNode, config) {
                        _classCallCheck(this, Scroll);

                        var _this = _possibleConstructorReturn(this, (Scroll.__proto__ || Object.getPrototypeOf(Scroll)).call(this, domNode));

                        _this.emitter = config.emitter;
                        if (Array.isArray(config.whitelist)) {
                            _this.whitelist = config.whitelist.reduce(function(whitelist, format) {
                                whitelist[format] = true;
                                return whitelist;
                            }, {});
                        }
                        // Some reason fixes composition issues with character languages in Windows/Chrome, Safari
                        _this.domNode.addEventListener('DOMNodeInserted', function() {});
                        _this.optimize();
                        _this.enable();
                        return _this;
                    }

tyfiero avatar Sep 06 '23 18:09 tyfiero

The line _this.domNode.addEventListener('DOMNodeInserted', function () {}); appears to be a workaround to trigger some internal logic in response to changes in the DOM when new nodes are inserted into _this.domNode. However, the empty function doesn't actually perform any meaningful action.

An equivalent using MutationObserver will be something like this:

var observer = new MutationObserver(function () {});
observer.observe(_this.domNode, { childList: true });

childList when set to true, indicates that the observer should monitor changes to the direct children (added or removed nodes) of the target node.

I tried this and the warning is gone. Apparently all works as expected.

lqmorais avatar Sep 15 '23 13:09 lqmorais

same problem

sharpprahs avatar Oct 03 '23 01:10 sharpprahs

Hello. Tell me, is there a plan to fix this error?

leonid-br avatar Oct 13 '23 07:10 leonid-br

The solution would be to upgrade to version 2 of quill, but it hasn't been released yet https://github.com/quilljs/quill/issues/3806

messenjer avatar Oct 13 '23 08:10 messenjer

The problem is we have no updates on the promised version 2 of Quill. Just use Tiptap instead

JelynValcorza avatar Oct 16 '23 08:10 JelynValcorza

The problem is we have no updates on the promised version 2 of Quill. Just use Tiptap instead

Your suggestion is to replace quill throughout the project?

leonid-br avatar Oct 16 '23 15:10 leonid-br

There should be an update soon, the developer hoping to release a beta before December. https://github.com/quilljs/quill/issues/3896

Spring-SWE avatar Nov 04 '23 18:11 Spring-SWE

[Deprecation] Listener added for a synchronous DC" Mutation Event. This event type is deprecated quill.. and work is underway to remove it from this browser. usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. consider using MutationObserver instead ......Unable to perform some functionality because of this! An update or help would be helpful

Anveshh99 avatar Nov 23 '23 06:11 Anveshh99

quilljs/quill#3806 update quill to 2.0.0

只能等待了……

digitalboy avatar Dec 03 '23 09:12 digitalboy

still no update to quill. I'm using tiptap but you have to import almost everything.

Leroy-sama avatar Dec 25 '23 14:12 Leroy-sama

Hello guys, any update on when is the new version release going to happen and is this issue with the mutation going to be fixed?

EdManukyan avatar Dec 29 '23 21:12 EdManukyan

Hey guys also waiting for the update.

Philword avatar Dec 30 '23 04:12 Philword

The line _this.domNode.addEventListener('DOMNodeInserted', function () {}); appears to be a workaround to trigger some internal logic in response to changes in the DOM when new nodes are inserted into _this.domNode. However, the empty function doesn't actually perform any meaningful action.

An equivalent using MutationObserver will be something like this:

var observer = new MutationObserver(function () {});
observer.observe(_this.domNode, { childList: true });

childList when set to true, indicates that the observer should monitor changes to the direct children (added or removed nodes) of the target node.

I tried this and the warning is gone. Apparently all works as expected.

This method works. Thank you!

chinahmz avatar Jan 04 '24 02:01 chinahmz

Hey everyone, still waiting for fixes in the new version of react-quill.. is there any updates.. on when this error is going to be fixed "[Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event."

proniket avatar Jan 04 '24 13:01 proniket

Hey everyone, still waiting for fixes in the new version of react-quill.. is there any updates.. on when this error is going to be fixed "[Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event."

I thought you found the solution?

Wamaitha12 avatar Jan 09 '24 12:01 Wamaitha12

Hey I am also facing this error let us know if someone find the solution for this.

shanulhabib avatar Jan 09 '24 13:01 shanulhabib

same here, standing in line and waiting.

hannes1337 avatar Jan 11 '24 23:01 hannes1337

iListener added for a synchronous 'DOMNodeInserted' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

i have the same problem Any solution now?

NuanYang-Li avatar Jan 16 '24 06:01 NuanYang-Li

I met the same prompt. Not sure what the impact is.

zran-20 avatar Jan 19 '24 09:01 zran-20

me too i have same issue

GisungJung avatar Jan 22 '24 08:01 GisungJung