Open antonioribeiro opened 4 years ago
Is there any hotfix available?
It's hard to apply the change to the minified Quill code, and don't want to run unminified in production.
Although using that guard prevents Quill from crashing in this instance, I also noticed that it clears out the toolbar of selected formats and then when I try and delete any text I get a new error... 'leaf.position is not a function'.
This is my barebones example demonstrating the problem: https://codepen.io/ackmanx/pen/xxqzPyy?editors=1111
I got the same issue. Subscribe to this!
Same issue
same issue
Same here, I hacked some Shift+Enter
to insert LineBreak <br>
tag(Not Easy but worked) and then new problem is coming, that is undo(Command+Z)
throws me this Mutation Error, what a journey!
I believe we have traces of this problem happening in a lot of places, and it should be kind of easy to fix, but maybe not really to understand:
https://github.com/quilljs/parchment/issues/14 https://github.com/quilljs/quill/issues/2312 https://github.com/area17/twill/issues/458 https://github.com/quilljs/quill/issues/889
This error is occurring in Quill when the list of nodes are, somehow, problematic.
This is a simple
console.log()
ofblot.domNode
:As you can see the error occurs while processing a
<br>
, on line 121:Because that line is compiled to
But it could be prevented by just:
Because what happens is that this particular node doesn't exists, so a mutation property is, of course, undefined.