Skip to content

Commit

Permalink
fix: clear topic innerHTML before shape node
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Oct 12, 2023
1 parent 3a7271d commit 0baf15a
Show file tree
Hide file tree
Showing 3 changed files with 4 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": "3.2.4",
"version": "3.2.5",
"type": "module",
"description": "Mind elixir is a free open source mind map core.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/utils/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || ''
Expand Down

0 comments on commit 0baf15a

Please sign in to comment.