Skip to content

Commit

Permalink
fix(Message): destroy node when visible is false (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored Jul 17, 2023
1 parent c3c6fd1 commit 32e08e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/message/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ function create(props: MessageActionOptionsType): void {
visible: visible.value,
onDurationEnd: () => {
visible.value = false;
context.removeChild(root);
},
onCloseBtnClick: () => {
visible.value = false;
context.removeChild(root);
},
}),
});
Expand Down

0 comments on commit 32e08e8

Please sign in to comment.