Skip to content

Commit

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

fix: ensure `disabled` is passed to `Popover.Trigger`
1 change: 1 addition & 0 deletions packages/bits-ui/src/lib/bits/popover/popover.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class PopoverTriggerState {
"data-state": getDataOpenClosed(this.#root.open.current),
"aria-controls": this.#getAriaControls(),
"data-popover-trigger": "",
disabled: this.#disabled.current,
//
onpointerdown: this.#onpointerdown,
onkeydown: this.#onkeydown,
Expand Down

0 comments on commit 7edeb23

Please sign in to comment.