Skip to content

Commit 510c6a7

Browse files
authored
docs: Use correct pagecount accessor (#5732) (#5786)
1 parent a430212 commit 510c6a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/react/kitchen-sink/src/components/ActionButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function ActionButtons<T extends RowData>({
7676
<input
7777
type="number"
7878
min="1"
79-
max={table.getPageCount()}
79+
max={pageCount}
8080
defaultValue={pageIndex + 1}
8181
onChange={e => {
8282
const page = e.target.value ? Number(e.target.value) - 1 : 0

0 commit comments

Comments
 (0)