Replies: 2 comments
-
@PhiloNL please, have you an idea ? Thank you :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did you add a "wire:key" to the element in to loop? See here: |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I use a Livewire component (called AddItemsTable) to build and show several tables on a page of my app.
So I have multiple instances of this class on the same page.
On each row of these different instances / tables, I have a delete button that uses a confirmation modal : the delete method of my AddItemsTable use $this->askForConfirmation(...) and a callback to process the deleting action.
My problem : when I confirm the confirmation modal , ConfirmationModal class dispatches 'actionConfirmed' to AddItemsTable class so every instance of it receive and react to it, so I have bugs.
How would handle this configuration ?
Is there a way to target a specific instance of my AddItemsTable components in the page ?
Maybe I miss something, so please let me know if i made a mistake somewhere.
Thanks a lot for any help.
JG
Beta Was this translation helpful? Give feedback.
All reactions