fix(helper): stop info icon click from propagating to parent on mobile (#9809)

This commit is contained in:
Andras Bacsai 2026-04-26 13:54:59 +02:00 committed by GitHub
commit 8ef238d19c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
<div {{ $attributes->merge(['class' => 'group']) }}> <div x-data="{ open: false }" @click.stop="open = !open" @click.outside="open = false"
{{ $attributes->merge(['class' => 'group']) }}>
<div class="info-helper"> <div class="info-helper">
@isset($icon) @isset($icon)
{{ $icon }} {{ $icon }}
@ -10,7 +11,7 @@
@endisset @endisset
</div> </div>
<div class="info-helper-popup"> <div class="info-helper-popup" :class="{ 'block': open }">
<div class="p-4"> <div class="p-4">
{!! $helper !!} {!! $helper !!}
</div> </div>