Closed Cat1007 closed 1 year ago
https://github.com/imguolao/monaco-vue/blob/60528daef6131e749ff1a6f16e2f8578ddcaa512/packages/editor/src/components/Editor.ts#L118
if toggle unmounted hook before editorRef inited, this line of code will throw an error Error: TypeError: Cannot read properties of null (reading 'getModel')
Got it, will be fixed in the next version.
fixed in version@1.1.2
https://github.com/imguolao/monaco-vue/blob/60528daef6131e749ff1a6f16e2f8578ddcaa512/packages/editor/src/components/Editor.ts#L118
if toggle unmounted hook before editorRef inited, this line of code will throw an error Error: TypeError: Cannot read properties of null (reading 'getModel')