Skip to content

Commit

Permalink
fix(pastTimePicker): 固定时间范围选择时panel抖动 (#2159)
Browse files Browse the repository at this point in the history
Co-authored-by: YanHui <[email protected]>
  • Loading branch information
hiker90 and YanHui authored Jun 16, 2023
1 parent da81bc0 commit 7379360
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/static-date-picker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ const Cell: React.FC<{ visible: boolean; prefixCls: string; currentDate: Date }>
}
});

return (visible &&
if (!visible) {
return null;
}
return (
<div ref={divRef} className={`${prefixCls}-cell-inner`}>
{currentDate.getDate()}
</div>
Expand Down

0 comments on commit 7379360

Please sign in to comment.