React-quill: Uncaught TypeError: Cannot read property 'destroy' of undefined

Created on 3 Dec 2015  路  5Comments  路  Source: zenoamaro/react-quill

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

Most helpful comment

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

All 5 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

camliu89 picture camliu89  路  4Comments

prosenjitchy picture prosenjitchy  路  3Comments

shaneshearer-andculture picture shaneshearer-andculture  路  4Comments

Nazanin1369 picture Nazanin1369  路  4Comments

gustavoelizalde picture gustavoelizalde  路  5Comments