Skip to content

Bug: Datatable pagination issue on Firefox(?) #2241

@Lakelimbo

Description

@Lakelimbo

Describe the bug

It seems like the pagination on both docs and the guide on the Data Table component have a weird bug (apparently specific to Firefox?), where you can't properly paginate between pages. Whenever clicking to go to the previous or next page, the index jumps by 2 or 3 numbers, eventually even going out of bounds (non-existing page).

Reproduction

Go to either the Tasks or the dashboard 01 block (pnpm dlx shadcn-svelte@latest add dashboard-01) and try to go to the next or previous on the table on Firefox. I am not able to reproduce this issue on Chromium.
Originally I thought it may have been an upstream issue with Tanstack Table, but the issue seemingly does not occur on the original Shadcn/UI's tasks datatable.

Gravacao.de.tela.de.2025-07-28.19-45-02.mp4

System Info

System:
    OS: Linux 6.15 EndeavourOS
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
    Memory: 8.69 GB / 15.54 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 24.4.1 - /usr/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 11.5.1 - /usr/bin/npm
    pnpm: 10.13.1 - /usr/bin/pnpm
    bun: 1.2.17 - ~/.bun/bin/bun
  npmPackages:
    @lucide/svelte: ^0.525.0 => 0.525.0
    @sveltejs/kit: ^2.24.0 => 2.24.0
    bits-ui: ^2.8.11 => 2.8.11
    formsnap: ^2.0.1 => 2.0.1
    mode-watcher: ^1.1.0 => 1.1.0
    svelte: ^5.36.2 => 5.36.2
    svelte-sonner: ^1.0.5 => 1.0.5
    sveltekit-superforms: ^2.27.1 => 2.27.1
    tailwindcss: ^4.1.11 => 4.1.11
    vaul-svelte: 1.0.0-next.7 => 1.0.0-next.7

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageThe issue is pending triage by a maintainer.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions