asantibanez/livewire-select

Select event does not update value while set searchable="true"

Opened this issue · 1 comments

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