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

Rich select & clearable option #211

Open
michaudhugo opened this issue Jul 8, 2021 · 0 comments
Open

Rich select & clearable option #211

michaudhugo opened this issue Jul 8, 2021 · 0 comments

Comments

@michaudhugo
Copy link

Hi,

When using the TRichSelect component, it's possible to set :clearable="true'.
But I can't exactly figure out if it's working fine or not.

In my component wrapping a TRichSelect, I have a reactive array of values.
I pass this array to the TRichSelect via :value="myReactiveArray".
When I select different options in the dropdown, myReactiveArray is updated just fine.
When I try to clear the selection, I can see the input is cleared, while myReactiveArray is not.

By using the @input event, I can track the value changes of the selection. I wanted to update myReactiveArray at that moment, when the input is becoming empty, but it's poping an error.

So, I'm looking for a way to have myReactiveArray being synchronized with the TRichSelect and the clearable option.
And as per my tests, this clearable feature is not totally working: it should sync myReactiveArray, as much as selection/deselecting options in the dropdown are sync.

Best regards.

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

1 participant