sl-ember-components icon indicating copy to clipboard operation
sl-ember-components copied to clipboard

Enforce the setting of currentMonth property to only allow 1 - 12

Open juwara0 opened this issue 9 years ago • 1 comments

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.

juwara0 avatar Aug 26 '15 20:08 juwara0

Addressed by #1458 ( dates driving the calendar must be of type moment )

SpikedKira avatar Feb 05 '16 16:02 SpikedKira