calendar
calendar copied to clipboard
start-end demo's incorrect disabledStartDate function
The start disable time is incorrect. Here is the right code.
disabledStartDate = startValue => { if (!startValue) { return false; } const endValue = this.state.endValue; if (!endValue) { return false; } return SHOW_TIME ? endValue.isBefore(startValue) : endValue.diff(startValue, 'days') <= 0; };