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 530d6a6 commit aecefdf
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@
@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)) {
if (
! (
document.activeElement.selectionStart ||
document.activeElement.selectionEnd
)
) {
{{ $closeEventHandler }}
}
"
Expand Down

0 comments on commit aecefdf

Please sign in to comment.