diff --git a/src/date-picker/hooks/useTableData.tsx b/src/date-picker/hooks/useTableData.tsx index c1c1a10bfc..ea2887410d 100644 --- a/src/date-picker/hooks/useTableData.tsx +++ b/src/date-picker/hooks/useTableData.tsx @@ -10,7 +10,7 @@ export interface TableDataProps extends SinglePanelProps { hoverEnd?: Date | undefined; minDate: Date | null; maxDate: Date | null; - cancelRangeSelectLimit: boolean; + cancelRangeSelectLimit?: boolean; } export default function useTableData(props: TableDataProps) { diff --git a/test/snap/__snapshots__/csr.test.jsx.snap b/test/snap/__snapshots__/csr.test.jsx.snap index 6f2ee8b1e2..7c8d27eae9 100644 --- a/test/snap/__snapshots__/csr.test.jsx.snap +++ b/test/snap/__snapshots__/csr.test.jsx.snap @@ -70026,6 +70026,227 @@ exports[`csr snapshot test > csr test src/date-picker/_example/base.jsx 1`] = ` } `; +exports[`csr snapshot test > csr test src/date-picker/_example/cancel-range-limit.jsx 1`] = ` +{ + "asFragment": [Function], + "baseElement": +