Replies: 2 comments
-
same thing for me :( |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you're using Livewire 3, then use the new wire:confirm approach instead to confirm, then run your delete authorization, and close the modal. Take note of the order, and customisations of closing the modal etc If you are insistent on doing it another way, then you may end up deleting the record for the page you're on, and you'll get a 404 unless you force a redirect, or catch a model not found correctly. Don't use this for confirmation modals, it's not efficient for that as you're making more db calls than you need to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to have the modal behave like a confirm dialog?
I came across the problem, where I display the modal, have two buttons in it (cancel, delete), click on delete (runs a method delete inside the component), deletes the record, closes the modal - but then I get a 404 not found.
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions