When the v-model of the datepicker changes externally, it doesn't update the displayed value untill you hover over it. By default I initialize the v-model to new Date() but in some cases I will overwrite this value by something I fetch from my API.
I worked like this:
<b-form-datepicker id="datepicker" v-model="date" value-as-date required ></b-form-datepicker>
@Component export default class MyComponent extends Vue { private date = new Date(); ... async mounted() { if ( ... ) { this.date = await ... } } }Expected behavior
The datepicker should update when it's v-model updates.
VersionsLibraries:
Environment:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4