Wrap window.LivewireUIModal at alpine:init to null-guard closingModal() the way the vendor already guards getActiveComponentModalAttribute, so the click-away path no longer throws "Cannot read properties of undefined (reading 'name')" when @persist widens the Alpine/Livewire desync window. In-sync close behavior (incl. a modal vetoing its own close) is unchanged. Verified: deterministic browser repro flips threw:true -> threw:false; the real closeModalOnClickAway() entry is clean under forced desync and the modal still closes; @persist first-open after navigate, spinner, and Escape/Abbrechen all remain clean (0 console errors). 182 tests pass; Vite build OK; Codex review approved. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| css | ||
| fonts | ||
| js | ||
| views | ||