Commit 4473168f authored by yann300's avatar yann300

fix removing el from plugin panel

parent 602623bf
...@@ -93,6 +93,7 @@ export class AbstractPanel { ...@@ -93,6 +93,7 @@ export class AbstractPanel {
const el = this.contents[name] const el = this.contents[name]
delete this.contents[name] delete this.contents[name]
if (el) el.parentElement.removeChild(el) if (el) el.parentElement.removeChild(el)
if (name === this.active) this.active = undefined
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment