[Deprecation] Listener added for a synchronous 'DOMNodeInserted' DOM Mutation Event.
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?
https://github.com/quilljs/quill/issues/3806 update quill to 2.0.0
hello, any predictions for an update to version 2.0?
Hello, same problem here, any news ?
Facing performance issues because of this! An update would be helpful
Any update on this?
got the same issue.
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.
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
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.
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;
}
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.
same problem
Hello. Tell me, is there a plan to fix this error?
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
The problem is we have no updates on the promised version 2 of Quill. Just use Tiptap instead
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?
There should be an update soon, the developer hoping to release a beta before December. https://github.com/quilljs/quill/issues/3896
[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
still no update to quill. I'm using tiptap but you have to import almost everything.
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?
Hey guys also waiting for the update.
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
MutationObserverwill 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!
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."
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?
Hey I am also facing this error let us know if someone find the solution for this.
same here, standing in line and waiting.
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?
I met the same prompt. Not sure what the impact is.
me too i have same issue