diff --git a/package.json b/package.json index 806f6a0c..4f4e1653 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mind-elixir", - "version": "3.2.4", + "version": "3.2.5", "type": "module", "description": "Mind elixir is a free open source mind map core.", "keywords": [ diff --git a/src/index.ts b/src/index.ts index 1904b10f..bf8e2a62 100644 --- a/src/index.ts +++ b/src/index.ts @@ -126,7 +126,7 @@ MindElixir.DARK_THEME = DARK_THEME * @memberof MindElixir * @static */ -MindElixir.version = '3.2.4' +MindElixir.version = '3.2.5' /** * @function * @memberof MindElixir diff --git a/src/utils/dom.ts b/src/utils/dom.ts index 3c9617f9..9d98284f 100644 --- a/src/utils/dom.ts +++ b/src/utils/dom.ts @@ -14,6 +14,8 @@ export const findEle = (id: string, instance?: MindElixirInstance) => { } export const shapeTpc = function (tpc: Topic, nodeObj: NodeObj) { + tpc.innerHTML = '' + if (nodeObj.style) { tpc.style.color = nodeObj.style.color || '' tpc.style.background = nodeObj.style.background || ''