Skip to content

Commit

Permalink
fix(tooltip): NO-JIRA null protection on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
braddialpad committed Sep 17, 2024
1 parent b14912f commit 7cc5748
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dialtone-vue2/components/tooltip/tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default {
beforeDestroy () {
this.externalAnchor && this.removeExternalAnchorEventListeners();
if (this.tip) {
if (this.anchor?._tippy) {
this.tip?.destroy();
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/dialtone-vue3/components/tooltip/tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default {
beforeUnmount () {
this.externalAnchor && this.removeExternalAnchorEventListeners();
if (this.tip) {
if (this.anchor?._tippy) {
this.tip?.destroy();
}
},
Expand Down

0 comments on commit 7cc5748

Please sign in to comment.