diff --git a/next-docs/public/examples/table/DeepTable.tsx b/next-docs/public/examples/table/DeepTable.tsx
index 21998b962..db709abc2 100644
--- a/next-docs/public/examples/table/DeepTable.tsx
+++ b/next-docs/public/examples/table/DeepTable.tsx
@@ -12,12 +12,24 @@ const Example = () => {
{isAllRowsExpanded ? : }
),
- Cell: ({ row }: any) =>
- row.canExpand ? (
-
+ Cell: ({ row, toggleRowExpanded }: any) =>
+
+ {row.canExpand ? (
+ {
+ e.preventDefault();
+ toggleRowExpanded(row.id, row.isExpanded !== true);
+ }}
+ >
{row.isExpanded ? : }
- ) : null,
+ ) : null}
+
},
{
Header: 'Name',
diff --git a/next-docs/public/examples/table/__tests__/__snapshots__/index.test.tsx.snap b/next-docs/public/examples/table/__tests__/__snapshots__/index.test.tsx.snap
index 1c877e4b3..9fa5e5e04 100644
--- a/next-docs/public/examples/table/__tests__/__snapshots__/index.test.tsx.snap
+++ b/next-docs/public/examples/table/__tests__/__snapshots__/index.test.tsx.snap
@@ -31280,24 +31280,29 @@ Object {
role="cell"
style="box-sizing: border-box; flex: 100 0 auto; min-width: 100px; width: 100px;"
>
-
-
-
+
+
+