Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview not loading for Kitchen Sink example #5788

Open
Guiw5 opened this issue Nov 1, 2024 · 1 comment
Open

Preview not loading for Kitchen Sink example #5788

Guiw5 opened this issue Nov 1, 2024 · 1 comment

Comments

@Guiw5
Copy link

Guiw5 commented Nov 1, 2024

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.

@GH-TIMe
Copy link

GH-TIMe commented Nov 7, 2024

Found pull request for this issue: #5786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants