Skip to content

Commit

Permalink
fix: dropdown menu trigger button type (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Nov 19, 2024
1 parent d195154 commit 66e7c39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-dogs-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

DropdownMenu.Trigger `type="button"` by default
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
child,
children,
disabled = false,
type = "button",
...restProps
}: MenuTriggerProps = $props();
Expand All @@ -23,7 +24,7 @@
),
});
const mergedProps = $derived(mergeProps(restProps, triggerState.props));
const mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));
</script>

<FloatingLayerAnchor {id}>
Expand Down

0 comments on commit 66e7c39

Please sign in to comment.