You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Modals: migrate Livewire div modals to native <dialog> + showModal() #87
Missing vs. a real modal: no focus trap (Tab reaches the page behind), page isn't inert for screen readers, no Esc to close, no scroll lock, and z-index: 999 stacking.
Bootstrap 6 replaced Modal with native <dialog> + showModal(), ::backdrop (with backdrop-filter), @starting-style entry, and html.dialog-open scroll lock with scrollbar-gutter: stable.
Proposed
Render <dialog class="modal" wire:ignore.self> and open it with a tiny Alpine hook, e.g. x-init="$el.showModal()" when the Livewire condition renders it, or x-effect bound to an entangled $wire.showEditModal.
Map native close (Esc / cancel event) back to the Livewire close method: @close="$wire.closeEditModal()".
Backdrop click: @click.self on the dialog (the dialog box is the only non-backdrop area if padding lives on an inner element).
Activity