mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
demo(date-picker-demo): fix select-in-range demo (#41161)
This commit is contained in:
parent
b915094498
commit
d5ef496bb6
@ -14,8 +14,8 @@ const App: React.FC = () => {
|
||||
if (!dates) {
|
||||
return false;
|
||||
}
|
||||
const tooLate = dates[0] && current.diff(dates[0], 'days') > 7;
|
||||
const tooEarly = dates[1] && dates[1].diff(current, 'days') > 7;
|
||||
const tooLate = dates[0] && current.diff(dates[0], 'days') >= 7;
|
||||
const tooEarly = dates[1] && dates[1].diff(current, 'days') >= 7;
|
||||
return !!tooEarly || !!tooLate;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user