monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

Uncaught Type Error on removal

Open DrNiels opened this issue 7 years ago • 1 comments

When I remove the editor element (or one of its parents), an error is displayed in the console:

monaco-editor-iframe.js:87 Uncaught TypeError: Cannot read property 'postMessage' of null
    at EditorProxy.postMessage (monaco-editor-iframe.js:87)
    at EditorProxy.dispose (monaco-editor-iframe.js:111)
    at HTMLElement.disconnectedCallback (monaco-editor.html:487)
    at HTMLElement.closeTab (tabbed-shell.html:665)
    at HTMLElement._handleCloseEvent (tabbed-shell.html:480)
    at HTMLElement._close (ips-tab.html:60)
    at HTMLElement.handler (template-stamp.html:92)
    at Object._fire (gestures.html:599)
    at Object.forward (gestures.html:991)
    at Object.click (gestures.html:957)````

So far, I could not observe any further effects of this error beside the message.

DrNiels avatar Jan 18 '18 09:01 DrNiels

Thanks. I will look into it. Seems like we did not remove some of the bindings properly when u remove the editor.

eterna2 avatar Jan 18 '18 11:01 eterna2