livewire-select icon indicating copy to clipboard operation
livewire-select copied to clipboard

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

Open webtamizhan opened this issue 3 years ago • 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

webtamizhan avatar Mar 17 '21 07:03 webtamizhan

´´´ 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

gbelot2003 avatar Apr 19 '21 07:04 gbelot2003