Skip to content

Commit

Permalink
fix(SelectCustom): avoid submitting to form when closing
Browse files Browse the repository at this point in the history
  • Loading branch information
smarroufin committed Oct 4, 2022
1 parent 8776929 commit 3a7a301
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

0 comments on commit 3a7a301

Please sign in to comment.