Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/web-vue/src/components/ui/button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export function Button(props: ButtonProps, { attrs, slots }: any): VNode {
return h(
Primitive,
{
// Primitive defaults to <div>, which cannot submit forms or receive disabled.
// asChild=true swaps the element for the slot child; plain type="button" keeps
// in-form buttons from implicitly submitting.
as: 'button',
type: 'button',
...attrs,
'data-slot': 'button',
'data-variant': variant ?? 'default',
Expand Down
Loading