Open Guiw5 opened 1 month ago
The current example doesn't load the preview since there is a minor bug in the code
File: examples/react/kitchen-sink/src/components/ActionButtons.tsx
Section:
<span className="flex items-center gap-1"> | Go to page: <input type="number" min="1" max={table.getPageCount()} /////////// table doesn't exist here, should refer to pageCount prop \\\\\\\\\\\\\ defaultValue={pageIndex + 1} onChange={e => { const page = e.target.value ? Number(e.target.value) - 1 : 0 setPageIndex(page) }} className="border p-1 rounded w-16" /> </span>
I would be grateful to contribute to the fix.
Found pull request for this issue: https://github.com/TanStack/table/pull/5786
The current example doesn't load the preview since there is a minor bug in the code
File: examples/react/kitchen-sink/src/components/ActionButtons.tsx
Section:
I would be grateful to contribute to the fix.