Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
webtamizhan opened this issue Mar 17, 2021 · 1 comment
Open

Comments

@webtamizhan
Copy link

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

@gbelot2003
Copy link

gbelot2003 commented Apr 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants