Closed cloudwales closed 1 year ago
After a bit of playing i still have the same issue, but found i'm getting this error in the console.
2:538 Uncaught (in promise) TypeError: Livewire.find is not a function
Heres the updated code
protected $listeners = [
'confirmDelete'
];
public function deleteUser()
{
$this->confirm('Are you sure you want to delete?', [
'confirmButtonText' => 'Delete',
'onConfirmed' => 'confirmDelete',
]);
}
public function confirmDelete()
{
Log::info('Hit condirmed delete');
}
Found the issue. I was loading livewire scripts twice. I knew it was something I had done wrong!!!
Hi. I'm not quite sure what i'm missing here, hopfully its an easy one... But for some reason, when using confirm, it's not hitting the confirmed method!
The alert is popping up as it should, but when clicking the delete button its not hitting the confirmedDelete method. Any ideas?