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 13, 2025
1 parent 06bec1e commit e401515
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@
{{-- Avoid formatting issues with unclosed elements --}}

<div
x-on:click="$el.nextElementSibling.dispatchEvent(new CustomEvent(@js($openEventName)))"
{{ $trigger->attributes->class(['fi-modal-trigger']) }}
@if (! $trigger->attributes->get('disabled'))
x-on:click="$el.nextElementSibling.dispatchEvent(new CustomEvent(@js($openEventName)))"
@endif
{{ $trigger->attributes->except(['disabled'])->class(['fi-modal-trigger']) }}
>
{{ $trigger }}
</div>
Expand Down

0 comments on commit e401515

Please sign in to comment.