-
Notifications
You must be signed in to change notification settings - Fork 124
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
reset v-autocomplete programatically #66
Comments
You do not need to use a ref to clear the array of items, just clear on the component that is v-model.
|
@FelipeBohnertPaetzold I can't use v-model it throws error like |
@Hrddk |
@EnricoAlvarenga Not yet I'm using above mentioned method for now. |
@Hrddk This might be late but i'm having the same problem with the v-model, my solution is to check if item is null or not in your get-label function. That fixed the error. The only trouble i'm facing is how to reset the items when search text is empty. |
Hello
Can you please also add support for reset component programmatically.
currently I'm using following way to reset component.
data has this type of array:
and
getLable method returns:
setting
items
all the time with[] (null array)
andsearchText
with"" (empty string)
. so end user have to type again for new item.The text was updated successfully, but these errors were encountered: