Skip to content

Commit

Permalink
fix(tooltip-base): added a check in case tooltip is not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga committed Jan 16, 2024
1 parent 2bbe429 commit 0a507e2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class TooltipBase extends Marko.Component<Input> {

handleExpand() {
this.emit("base-expand");
this.updateTip();
if (this.hostEl && this.overlayEl) {
this.updateTip();
}
}

handleCollapse() {
Expand Down

0 comments on commit 0a507e2

Please sign in to comment.