in mixin.js:
destroyEditor: function(editor) {
editor.destroy();
},
if the DOM's changed (the editor had been removed) , I get the following error in Chrome: Uncaught TypeError: Cannot read property 'destroy' of undefined. Probably need to add a null check
componentWillUnmount which tries to destory the editor is called also by componentWillUpdate. In my case it happen when I'm trying to use toolbar prop. Editor state is not updated yet after mount from what I see.
Pull request: https://github.com/zenoamaro/react-quill/pull/76
I'm having same issue when use custom toolbar
Is this going to be merged and released any time soon? It has been 4 months..
is there any update concerning this issue or how to go arround it ?
Should be fixed in the latest master. Can you verify?
Most helpful comment
componentWillUnmountwhich tries to destory the editor is called also bycomponentWillUpdate. In my case it happen when I'm trying to usetoolbarprop. Editor state is not updated yet after mount from what I see.Pull request: https://github.com/zenoamaro/react-quill/pull/76