We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ebfef1 commit e59626bCopy full SHA for e59626b
resources/views/inertia/index.blade.php
@@ -20,9 +20,9 @@
20
};
21
22
// Listen to Inertia navigation events
23
- document.addEventListener('inertia:finish', async (event) => {
+ document.addEventListener('inertia:navigate', async (event) => {
24
const sweetalert2Data = event.detail.page.props.flash?.['{{ Swal::SESSION_KEY }}'];
25
-
+
26
if (sweetalert2Data && typeof sweetalert2Data === 'object') {
27
Swal = Swal || await getSweetAlert2();
28
Swal.fire(sweetalert2Data);
0 commit comments