showonne / vue-date

A datepicker component for Vue.js
https://showonne.github.io/vue-date/
MIT License
156 stars 65 forks source link

Default v-model is show in label but it is not selected-highlighted in opened date-picker #25

Closed jcamilorm902 closed 5 years ago

jcamilorm902 commented 6 years ago

If I set programmatically the date (v-model object), that value appears in component label, then I open date-picker and 'today' is selected-highlighted, but should be selected the value I set.

showonne commented 6 years ago

fixed.

jcamilorm902 commented 6 years ago

@showonne After your fix and update, look at this:

imagen

There is an incoherence between 2016-08-03 and '2016-08-02' shown selected in panel.

What about if you use: getUTCFullYear, getUTCMonth, getUTCDate, getUTCDay functions, instead of locale based functions?