[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: tooltip plugin will make the editor auto focused (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone authored Aug 22, 2024
1 parent 08a74c9 commit c9f3781
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/plugins/plugin-tooltip/src/tooltip-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class TooltipProvider {
this.#debounce = options.debounce ?? 200
this.#shouldShow = options.shouldShow ?? this.#_shouldShow
this.#offset = options.offset
this.element.dataset.show = 'false'
}

/// @internal
Expand Down Expand Up @@ -151,6 +152,8 @@ export class TooltipProvider {

/// Hide the tooltip.
hide = () => {
if (this.element.dataset.show === 'false')
return
this.element.dataset.show = 'false'

this.onHide()
Expand Down

0 comments on commit c9f3781

Please sign in to comment.