editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

Unloading without finished causes crash

Open bosgeluk opened this issue 7 years ago • 1 comments

I've used the wrapper of stfy (stfy/react-editor.js) but I think the error is located inside editor.js.

When the editor is initializing - at a certain stage not in every stage - and I switch context to another tab [my way of context switch] the destroy method is fired, which seems ok. However when the observer is disconnected (this.observer.disconnect() in modificationObserver.ts) the disconnect method doesn't exists yet. Which causes an error.

bosgeluk avatar Sep 20 '19 10:09 bosgeluk

Uncaught TypeError: Cannot read property 'disconnect' of undefined at e.value (editor.js:5703) at t.destroy (editor.js:10265)

bosgeluk avatar Sep 20 '19 10:09 bosgeluk