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 22ffc52 commit 54df64b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@
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="(document.activeElement.selectionStart === undefined) && (document.activeElement.selectionEnd === undefined) && {{ $closeEventHandler }}"
x-on:click.self="
document.activeElement.selectionStart === undefined &&
document.activeElement.selectionEnd === undefined &&
{{ $closeEventHandler }}
"
@endif
{{
$attributes->class([
Expand Down

0 comments on commit 54df64b

Please sign in to comment.