Skip to content

Commit

Permalink
fix(SelectCustom): avoid submitting to form when closing (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
smarroufin authored Oct 4, 2022
1 parent 8776929 commit cf1b2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/SelectCustom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ComboboxButton ref="trigger" v-slot="{ disabled }" as="div">
<slot :open="open" :disabled="disabled">
<button :class="selectCustomClass" :disabled="disabled">
<button :class="selectCustomClass" :disabled="disabled" type="button">
<slot name="label">
<span v-if="modelValue" class="block truncate">{{ modelValue[textAttribute] }}</span>
<span v-else class="block truncate u-text-gray-400">{{ placeholder }}</span>
Expand Down

1 comment on commit cf1b2cd

@vercel
Copy link

@vercel vercel bot commented on cf1b2cd Oct 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxtlabs.vercel.app
ui-nuxtlabs.vercel.app
nuxthq-ui.vercel.app

Please sign in to comment.