Skip to content

Commit

Permalink
Fix #654 last day of month wrongly disabled (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
danners authored and tomivirkki committed May 16, 2019
1 parent 450c2fa commit f371f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vaadin-month-calendar.html
Expand Up @@ -194,7 +194,7 @@
var lastDate = new Date(0, 0);
lastDate.setFullYear(month.getFullYear());
lastDate.setMonth(month.getMonth() + 1);
lastDate.setDate(-1);
lastDate.setDate(0);

if ((minDate && maxDate)
&& minDate.getMonth() === maxDate.getMonth()
Expand Down

0 comments on commit f371f8f

Please sign in to comment.