JosephusPaye / Keen-UI

A lightweight Vue.js UI library with a simple API, inspired by Google's Material Design.
https://josephuspaye.github.io/Keen-UI/
MIT License
4.1k stars 438 forks source link

Click Next Month Button on Last Day of Month Skips a Month #434

Closed scottnash closed 5 years ago

scottnash commented 5 years ago

If it's the last day of the month and you click the next month button/arrow, it actually skips the following month, and jumps to the month after that.

For example, if it's Jan. 31st and you click next month button it will take you to March instead of Feb. If you then click the previous month button, it will take you back to Feb. and if you click it again, it will take you to January, where if you click the next month again, it takes you correctly to Feb.

Expected Behavior On January 31st -> click next month -> go to February

Actual Behavior On January 31st -> click next month -> go to March

JosephusPaye commented 5 years ago

Hi @scottnash,

Just had a look and this happens when the selected date (e.g. Jan 31st) is not available in the next or previous month (Feb doesn't have a 31st). When this happens it skips the month and goes to the next.

Fixed this and about to publish a patch release.

JosephusPaye commented 5 years ago

Fix released in v1.0.2 and v1.1.1.