-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Is it possible to set initial-value after the component is initialized? #95
Comments
@wujekbogdan yes! this is something I fixed in 2.0. I would recommend upgrading to the latest beta https://www.npmjs.com/package/vue-autosuggest/v/2.0.0-beta.6 which would give you |
@darrenjennings |
It worked to v-model, but broke my |
@puremana happy to help if you have a codesandbox for reproducing. Fork this one for 1.x: https://codesandbox.io/s/vueautosuggest-api-clicking-things-in-the-headerfooter-bzdrp |
I'd like to set the
initial-value
but the source of the value is asynchronous, so I need to do it after the vue-autosuggest component is initialized. I've looked at the source code and it seems that the initial value is set when the component is created so it's not reactive. The only way I found is to access the input element via ref... which doesn't seem very elegant.Is there any better way of changing the input's value after the component is initialized?
The text was updated successfully, but these errors were encountered: