monaco-editor
monaco-editor copied to clipboard
Uncaught Type Error on removal
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.
Thanks. I will look into it. Seems like we did not remove some of the bindings properly when u remove the editor.