Skip to content

Commit

Permalink
Update index.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Feb 29, 2024
1 parent aecefdf commit 22ffc52
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,7 @@
x-ref="modalContainer"
@if ($closeByClickingAway)
{{-- Ensure that the click element is not triggered from a user selecting text inside an input. --}}
x-on:click.self="
if (
! (
document.activeElement.selectionStart ||
document.activeElement.selectionEnd
)
) {
{{ $closeEventHandler }}
}
"
x-on:click.self="(document.activeElement.selectionStart === undefined) && (document.activeElement.selectionEnd === undefined) && {{ $closeEventHandler }}"
@endif
{{
$attributes->class([
Expand Down

0 comments on commit 22ffc52

Please sign in to comment.