You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is a really late reply, but I just ran into this issue and figured it out, so I thought I'd add a reply here for anyone who comes across this unanswered issue like I did. There're two things I had to do, one of which differs from how the example says to do it (unless I missed something).
You have to include ref="autocomplete" on the component itself. This is how it'll add the object you need into this.$refs.
The autocomplete that gets put in there is actually an array, so while the example says to use this.$refs.autocomplete.clear(), what you ACTUALLY have to do is this.$refs.autocomplete[0].clear(). This is the part that's missing in the example given.
I am trying to reset the input field after selection with
this.$refs.autocomplete.clear()
But keep getting this error
TypeError: this.$refs.autocomplete is undefined
The text was updated successfully, but these errors were encountered: