Steps:
Open Canvas with GrapesJS, select any of the components, then click on Go to Random, I get an error that says "Cannot read property 'models' of undefined".
This only happens if I call the editor.destroy() before navigating to a different page. But if I remove the destroy, it works fine...
Demo: https://stackblitz.com/edit/grapesjs-models
Should I really call the destroy()? Will I have any issue on opening GrapesJS multiples times if I don't destroy it?
Hey @artf,
Steps: Open Canvas with GrapesJS, select any of the components, then click on
Go to Random
, I get an error that says "Cannot read property 'models' of undefined".This only happens if I call the
editor.destroy()
before navigating to a different page. But if I remove the destroy, it works fine... Demo: https://stackblitz.com/edit/grapesjs-modelsShould I really call the
destroy()
? Will I have any issue on opening GrapesJS multiples times if I don't destroy it?