Skip to content

Commit 0baf15a

Browse files
committed
fix: clear topic innerHTML before shape node
1 parent 3a7271d commit 0baf15a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-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": "3.2.4",
3+
"version": "3.2.5",
44
"type": "module",
55
"description": "Mind elixir is a free open source mind map core.",
66
"keywords": [

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ MindElixir.DARK_THEME = DARK_THEME
126126
* @memberof MindElixir
127127
* @static
128128
*/
129-
MindElixir.version = '3.2.4'
129+
MindElixir.version = '3.2.5'
130130
/**
131131
* @function
132132
* @memberof MindElixir

src/utils/dom.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export const findEle = (id: string, instance?: MindElixirInstance) => {
1414
}
1515

1616
export const shapeTpc = function (tpc: Topic, nodeObj: NodeObj) {
17+
tpc.innerHTML = ''
18+
1719
if (nodeObj.style) {
1820
tpc.style.color = nodeObj.style.color || ''
1921
tpc.style.background = nodeObj.style.background || ''

0 commit comments

Comments
 (0)