livewire-select
livewire-select copied to clipboard
Select event does not update value while set searchable="true"
Hi there!
If i am using :searchable="true"
in a component, it triggers the following error!
Override selectedOption() with keyed array (value, description) for meaningful description
Using the following
Laravel 8.12 Livewire 2.0 Livewire select 2.0
´´´ public function selectedOption($value) { $user = User::find($value);
return [
'value' => $user->id,
'description' => $user->name
];
}
´´´ The array output of selectedOptions and Option methos must match