Skip to content

Commit

Permalink
fix: tooltip not closing when pointer leaves (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Feb 10, 2025
1 parent c91c665 commit e97bd22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tough-walls-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

fix: tooltip not closing when pointer leave
2 changes: 1 addition & 1 deletion packages/bits-ui/src/lib/bits/tooltip/tooltip.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class TooltipContentState {
useGraceArea({
triggerNode: () => this.root.triggerNode,
contentNode: () => this.root.contentNode,
enabled: () => this.root.opts.open.current && this.root.disableHoverableContent,
enabled: () => this.root.opts.open.current && !this.root.disableHoverableContent,
onPointerExit: () => {
this.root.handleClose();
},
Expand Down

0 comments on commit e97bd22

Please sign in to comment.