protonemedia / laravel-splade

💫 The magic of Inertia.js with the simplicity of Blade 💫 - Splade provides a super easy way to build Single Page Applications (SPA) using standard Laravel Blade templates, and sparkle it to make it interactive. All without ever leaving Blade.
https://splade.dev
MIT License
1.47k stars 111 forks source link

Feature request or help needed for modal close confirmation popup #629

Open teknofi opened 7 months ago

teknofi commented 7 months ago

I can't currently see a way to show a confirmation message when a modal is closed either through the close button or by clicking off a modal where a confirmation box is shown where the user has input data on a create form but hasn't saved that data. It would be nice to display something like:

"Are you sure you want to close this form, input data will be lost" with a yes no prompt

is this currently achievable and if not can you add it to the improvement suggestions?