Skip to content

Commit

Permalink
It's possible to close a dialog again
Browse files Browse the repository at this point in the history
  • Loading branch information
ilestis committed Feb 29, 2024
1 parent 398c55f commit d00d28c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/dialog/close.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<button type="button" class="text-xl opacity-50 hover:opacity-100 focus:opacity-100 cursor-pointer text-decoration-none" data-dismiss="{{ $dismiss ?? 'modal' }}" aria-label="{{ __('crud.delete_modal.close') }}">
<button type="button" class="text-xl opacity-50 hover:opacity-100 focus:opacity-100 cursor-pointer text-decoration-none" data-dismiss="{{ $dismiss ?? 'modal' }}" aria-label="{{ __('crud.delete_modal.close') }}" onclick="this.closest('dialog').close('close')">
<x-icon class="fa-regular fa-circle-xmark"></x-icon>
<span class="sr-only">{{ __('crud.delete_modal.close') }}</span>
</button>

0 comments on commit d00d28c

Please sign in to comment.