NetCZ / vue-pikaday

VueJS wrapper component for Pikaday datepicker
https://netcz.github.io/vue-pikaday
MIT License
38 stars 3 forks source link

v-model 2-way binding? #3

Closed z3malford closed 6 years ago

z3malford commented 6 years ago

It seems that changes in the v-model value don't update the picker <input>. After initialization it seems to be only one way only.

Changing the v-model value from the containing component should cause the <input> to get updated accordingly IMHO.

Thanks!

BTW: my use model for this is I want to have some preset buttons like "Today", "Previous Day" (subtracts one day from the currently selected value), etc.

NetCZ commented 6 years ago

Thanks @z3malford, will check it and report back

NetCZ commented 6 years ago

@z3malford fixed in https://github.com/enrian/vue-pikaday/releases/tag/v1.0.2, please upgrade, thanks again for pointing this out