imacrayon / alpine-ajax

An Alpine.js plugin for building server-powered frontends.
https://alpine-ajax.js.org
MIT License
666 stars 15 forks source link

examples/dialog-form.md - add missing alpine event handlers to sample html #96

Open Fak3 opened 2 months ago

Fak3 commented 2 months ago

Sample html is missing that form is firing @ajax:success="$dispatch('contact:updated') and that dialog listens to this event to close itself. This commit adds missing parts to correspond to the live demo code on this same page.