calendar icon indicating copy to clipboard operation
calendar copied to clipboard

start-end demo's incorrect disabledStartDate function

Open JaylyLiu opened this issue 8 years ago • 0 comments

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; };

JaylyLiu avatar Nov 22 '18 08:11 JaylyLiu