We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb75af commit 1d07ed1Copy full SHA for 1d07ed1
lib/minimap-element.js
@@ -427,7 +427,10 @@ class MinimapElement {
427
const container = parent || this.minimap.getTextEditorElement()
428
const minimaps = container.querySelectorAll('atom-text-editor-minimap')
429
if (minimaps.length) {
430
- Array.prototype.forEach.call(minimaps, (el) => { el.destroy() })
+ Array.prototype.forEach.call(minimaps, (el) => {
431
+ el.destroy()
432
+ container.removeChild(el)
433
+ })
434
}
435
container.appendChild(this)
436
0 commit comments