sl-ember-components
sl-ember-components copied to clipboard
Enforce the setting of currentMonth property to only allow 1 - 12
Currently, sl-calendar's currentMonth property states that it should be set to a month number from 1 to 12 but this is not enforced.
currentMonth can be set to 0 or numbers greater than 12. When currentMonth is set to 0 it is ignored and the current month is used instead. When currentMonth is set to 13 it causes "Invalid date..." to be rendered.
Update sl-calendar to enforce the acceptable range for the currentMonth property to be the numbers 1 through 12 only.
Addressed by #1458 ( dates driving the calendar must be of type moment )