Skip to content

Commit 8ea1389

Browse files
committed
fix: presets和maxDate的对比
1 parent ac97da7 commit 8ea1389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PickerInput/Popup/PresetPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function PresetPanel<DateType extends object = any>(
2727
<div className={`${prefixCls}-presets`}>
2828
<ul>
2929
{presets.map(({ label, value }, index) => {
30-
const isDisabled = moment(value).isAfter(maxDate) || moment(value).isSame(maxDate);
30+
const isDisabled = moment(value).isAfter(maxDate);
3131
return (
3232
<li
3333
key={index}

0 commit comments

Comments
 (0)