You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no default start and end dates are provided, the current date is the default.
If you create a custom ranges and the first in the list is today, then selecting it will not fire the callback.
I did a quick workaround by commenting out the line below which checks to see if the new selection is the same as the last.
if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
However, if there no default dates are provided then I think the correct thing to do it not default to the current date and make the current date active in the list of ranges.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If no default start and end dates are provided, the current date is the default.
If you create a custom ranges and the first in the list is today, then selecting it will not fire the callback.
I did a quick workaround by commenting out the line below which checks to see if the new selection is the same as the last.
if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
However, if there no default dates are provided then I think the correct thing to do it not default to the current date and make the current date active in the list of ranges.
Beta Was this translation helpful? Give feedback.
All reactions