Skip to content

Commit

Permalink
fix: ensure disabled attr is forward to Tooltip.Trigger (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Nov 13, 2024
1 parent 2b9f660 commit b652c61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-clouds-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

fix: ensure `disabled` attribute is passed to a disabled tooltip trigger
1 change: 1 addition & 0 deletions packages/bits-ui/src/lib/bits/tooltip/tooltip.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ class TooltipTriggerState {
"data-delay-duration": `${this.#root.delayDuration}`,
[TRIGGER_ATTR]: "",
tabindex: this.#isDisabled ? undefined : 0,
disabled: this.#disabled.current,
onpointerup: this.#onpointerup,
onpointerdown: this.#onpointerdown,
onpointermove: this.#onpointermove,
Expand Down

0 comments on commit b652c61

Please sign in to comment.