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":
+
+
+ ,
+ "container": ,
+ "debug": [Function],
+ "findAllByAltText": [Function],
+ "findAllByDisplayValue": [Function],
+ "findAllByLabelText": [Function],
+ "findAllByPlaceholderText": [Function],
+ "findAllByRole": [Function],
+ "findAllByTestId": [Function],
+ "findAllByText": [Function],
+ "findAllByTitle": [Function],
+ "findByAltText": [Function],
+ "findByDisplayValue": [Function],
+ "findByLabelText": [Function],
+ "findByPlaceholderText": [Function],
+ "findByRole": [Function],
+ "findByTestId": [Function],
+ "findByText": [Function],
+ "findByTitle": [Function],
+ "getAllByAltText": [Function],
+ "getAllByDisplayValue": [Function],
+ "getAllByLabelText": [Function],
+ "getAllByPlaceholderText": [Function],
+ "getAllByRole": [Function],
+ "getAllByTestId": [Function],
+ "getAllByText": [Function],
+ "getAllByTitle": [Function],
+ "getByAltText": [Function],
+ "getByDisplayValue": [Function],
+ "getByLabelText": [Function],
+ "getByPlaceholderText": [Function],
+ "getByRole": [Function],
+ "getByTestId": [Function],
+ "getByText": [Function],
+ "getByTitle": [Function],
+ "queryAllByAltText": [Function],
+ "queryAllByDisplayValue": [Function],
+ "queryAllByLabelText": [Function],
+ "queryAllByPlaceholderText": [Function],
+ "queryAllByRole": [Function],
+ "queryAllByTestId": [Function],
+ "queryAllByText": [Function],
+ "queryAllByTitle": [Function],
+ "queryByAltText": [Function],
+ "queryByDisplayValue": [Function],
+ "queryByLabelText": [Function],
+ "queryByPlaceholderText": [Function],
+ "queryByRole": [Function],
+ "queryByTestId": [Function],
+ "queryByText": [Function],
+ "queryByTitle": [Function],
+ "rerender": [Function],
+ "unmount": [Function],
+}
+`;
+
exports[`csr snapshot test > csr test src/date-picker/_example/custom-icon.jsx 1`] = `
{
"asFragment": [Function],
diff --git a/test/snap/__snapshots__/ssr.test.jsx.snap b/test/snap/__snapshots__/ssr.test.jsx.snap
index c9826225ac..6550f870b6 100644
--- a/test/snap/__snapshots__/ssr.test.jsx.snap
+++ b/test/snap/__snapshots__/ssr.test.jsx.snap
@@ -276,6 +276,8 @@ exports[`ssr snapshot test > ssr test src/config-provider/_example/table.jsx 1`]
exports[`ssr snapshot test > ssr test src/date-picker/_example/base.jsx 1`] = `""`;
+exports[`ssr snapshot test > ssr test src/date-picker/_example/cancel-range-limit.jsx 1`] = `""`;
+
exports[`ssr snapshot test > ssr test src/date-picker/_example/custom-icon.jsx 1`] = `""`;
exports[`ssr snapshot test > ssr test src/date-picker/_example/date-presets-alt.jsx 1`] = `""`;