Skip to content

Commit

Permalink
[5.x] Fix enter key not submitting confirmation modal sometimes (#10721)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Varga <[email protected]>
  • Loading branch information
duncanmcclean and jasonvarga authored Sep 9, 2024
1 parent 7204291 commit 502c644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/modals/ConfirmationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</slot>
</div>
<div class="px-5 py-3 bg-gray-200 dark:bg-dark-550 rounded-b-lg border-t dark:border-dark-900 flex items-center justify-end text-sm">
<button class="btn-flat" @click.prevent="$emit('cancel')" v-text="__(cancelText)" v-if="cancellable" />
<button type="button" class="btn-flat" @click.prevent="$emit('cancel')" v-text="__(cancelText)" v-if="cancellable" />
<button class="rtl:mr-4 ltr:ml-4" :class="buttonClass" :disabled="disabled" v-text="__(buttonText)" />
</div>
</form>
Expand Down

0 comments on commit 502c644

Please sign in to comment.