Skip to content

Commit 3c8bd44

Browse files
committed
fix: clear innerHTML of mindElixirBox on destroy
1 parent cfec528 commit 3c8bd44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mind-elixir",
3-
"version": "4.3.1",
3+
"version": "4.3.2",
44
"type": "module",
55
"description": "Mind elixir is a free open source mind map core.",
66
"keywords": [

src/methods.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const methods = {
100100
},
101101
destroy(this: Partial<MindElixirInstance>) {
102102
this.disposable!.forEach(fn => fn())
103-
this.mindElixirBox?.remove()
103+
if (this.mindElixirBox) this.mindElixirBox.innerHTML = ''
104104
this.mindElixirBox = undefined
105105
this.nodeData = undefined
106106
this.arrows = undefined

0 commit comments

Comments
 (0)