-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'mutations' of undefined #87
Comments
…ist\quill.js adding "blot.domNode[Registry.DATA_KEY] &&" to if condition on line 7239 to prevent error of TypeError: Cannot read property 'mutations' of undefined Ref: slab/parchment#87
Is there any hotfix available? |
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 |
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:
#14
slab/quill#2312
area17/twill#458
slab/quill#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.
The text was updated successfully, but these errors were encountered: