charliekassel / vuejs-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
MIT License
2.61k stars 730 forks source link

Error taking the month when i change languaje="es" #246

Open franky1234 opened 7 years ago

franky1234 commented 7 years ago

I have one issue when i selected only the month in the datepicker, because i need pick the period of the month eg: August/2017 or January/2018, etc.It seems work correctly in the most of the months but its not working good specially when is: August, January, April, December. the prop "value" of the datepicker is correctly changed, but the "formattedValue" of the computed property returns null or the date January in the cases mentioned above. This only ocurre in the languaje="es". The input text of the vuejs-datepicker, when we see the selected date doesn't shows the date or shows wrong... There is my code using vuejs-datepicker and vuejs 2.1.10. My O.S. is ubuntu 14.04. And im using the event emmiters like: changedMonth, opened, of the library vuejs-datepicker.

This is my HTML. "

This is my script:

I need help. I think its a problem of the library..... test in languaje="es" please. As soon as possible. Regards: Franklin Flores Tola.

charliekassel commented 7 years ago

If I understand you correctly you are trying to pick a month, but the month selector is just to change the 'page' to that month. This component is based around selecting a date so nothing is selected until you pick a specific day. Month selection is not supported I'm afraid.