Object doesn't support property or method 'remove' in 0.16.0 on IE
See original GitHub issuemonaco-editor version: 0.16.0 Browser: IE OS: Windows
Steps or JS usage snippet reproducing the issue: 1.) Go to Monaco Editor Playground in Internet Explorer 2.) Right click inside the editor to bring up the right click menu. 3.) Attempt to left click to dismiss menu.
At this point you will get the following error:
SCRIPT5022: Object doesn't support property or method 'remove'
TypeError: Object doesn't support property or method 'remove'
at onHide (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:1425:855)
at t.prototype.hide (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:267:101)
at t.prototype.hideContextView (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:1399:375)
at Anonymous function (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:1425:557)
at e.prototype.fire (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:57:216)
at Anonymous function (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:702:714)
at e.prototype.fire (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:57:216)
at Anonymous function (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/editor/editor.main.js:132:595)
errors.ts (22,6)
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
IE: Object doesn't support property or method 'remove' #8406
function removeDiv(){ const divRef = document.getElementByClassName('test'); divRef[0].remove(); // this line will through error in IE and works ...
Read more >javascript - Object doesn't support property or method 'remove'
It's not supported in IE developer.mozilla.org/en-US/docs/Web/API/ChildNode.remove. – Jason Sperske. Sep 20, 2013 at 14:49 · 2. stackoverflow.com/questions/ ...
Read more >Object doesn't support property or method 'remove' in IE
Way to Fix an error: Object doesn't support property or method 'remove' in IE for ReactJS ... You can use the polyfill from...
Read more >Element Object doesn't support property or method 'remove' In IE
It is due to that IE doesn't support remove() function for DOM element. But if you change to the following, things work much...
Read more >Object doesn't support this property or method
1) In Internet Explorer, select the Tools menu and then click Internet Options. · 2) Click the Advanced tab, Click Reset button. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, @rebornix . Note that you may want to update https://microsoft.github.io/monaco-editor/playground.html to use the latest, right now it looks like it’s still grabbing the old 0.16.0 files:
Great. @rebornix , could you please take a look at the other IE11 issue as well, that’s also possible to repro using the site? Or redirect to a colleague? See #1367.