Skip to content

Commit

Permalink
fix: clear innerHTML of mindElixirBox on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Nov 15, 2024
1 parent cfec528 commit 3c8bd44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mind-elixir",
"version": "4.3.1",
"version": "4.3.2",
"type": "module",
"description": "Mind elixir is a free open source mind map core.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const methods = {
},
destroy(this: Partial<MindElixirInstance>) {
this.disposable!.forEach(fn => fn())
this.mindElixirBox?.remove()
if (this.mindElixirBox) this.mindElixirBox.innerHTML = ''
this.mindElixirBox = undefined
this.nodeData = undefined
this.arrows = undefined
Expand Down

0 comments on commit 3c8bd44

Please sign in to comment.