Function to submit form
I would like to submit the form after the user updates a select field. I tried it with live() but after updating the select field and reloading the page (without pressing save button) it is not being updated in the database
->afterStateUpdated(function (\Livewire\Component $livewire, string $operation) {
if ($operation == 'edit') {
$livewire->save();
}
})