Open Nakilon opened 7 years ago
Please provide a "runnable" example, for example on https://jsfiddle.net, so it is reproducable.
Most contributors do not have the time to take your example and try to reproduce it. So to increase the chance somebody will help you, make it as easy as possible to do so 😄
It calls setDateRange()
with correct parameters, and in if (!valid)
condition branch showGap()
forces the whole allowed range to be selected.
@holtkamp here is jsfiddle: https://jsfiddle.net/08zo987r/
The available period I've specified in constructor is since previous year until a nearly month ago.
Now when I choose "Week" it selects all the available period and does not fire a change event. If I don't pass the startDate and endDate to constructor it choses correctly and fires an event.