Skip to content

Commit

Permalink
feat(tooltip): expose show and hide methods
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Jan 10, 2024
1 parent 4c2c433 commit 987d933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class TooltipElement extends HTMLElement {
if (e.key === 'Tab') this.tabPressed = false;
};

private show() {
public show() {
if (this.disabled) return;

const tooltip = this.createTooltip();
Expand Down Expand Up @@ -132,7 +132,7 @@ export default class TooltipElement extends HTMLElement {
);
}

private hide() {
public hide() {
clearTimeout(this.timeout);

this.cleanup?.();
Expand Down

0 comments on commit 987d933

Please sign in to comment.