Skip to content

Commit

Permalink
fix: auto close the tooltip when triggering a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtianze committed Sep 7, 2023
1 parent 28dc7c3 commit e48cc03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tooltip/base-tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,8 @@ export class BaseTooltip<T = any>
}
}

protected onClick(event: Event) {
protected onClick() {
this.toggleTooltip();
event.stopPropagation();
}

protected onBodyClick(event: Event) {
Expand Down

0 comments on commit e48cc03

Please sign in to comment.