Open LucasS03 opened 4 years ago
I doubt similar issue has been opened, check there if any update.
You can use ref to add loaded value.
<vue-bootstrap-typeahead ref="typeahead" v-model="q" :data="list" :serializer="i => i.name" placeholder="Choose your bank" @hit="selectedItem($event)" class="vue-autocomplete">
mounted() { this.$refs.typeahead.inputValue = loadValueDatabase(); }
Value of attribute
q
not load if alter in created() or mounted(), as in my example:HTML:
JAVASCRIPT:
The value of attribute
q
is altered, but not renderized in v-model