Skip to content

Commit b652c61

Browse files
authored
fix: ensure disabled attr is forward to Tooltip.Trigger (#916)
1 parent 2b9f660 commit b652c61

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/empty-clouds-crash.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"bits-ui": patch
3+
---
4+
5+
fix: ensure `disabled` attribute is passed to a disabled tooltip trigger

packages/bits-ui/src/lib/bits/tooltip/tooltip.svelte.ts

+1
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ class TooltipTriggerState {
277277
"data-delay-duration": `${this.#root.delayDuration}`,
278278
[TRIGGER_ATTR]: "",
279279
tabindex: this.#isDisabled ? undefined : 0,
280+
disabled: this.#disabled.current,
280281
onpointerup: this.#onpointerup,
281282
onpointerdown: this.#onpointerdown,
282283
onpointermove: this.#onpointermove,

0 commit comments

Comments
 (0)