Row selection acting strange when using fully controlled table
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- react, typescript
- Bereich
- frontend
Rechercherichtung
Beginne mit der minimalen Reproduktion in CodeSandbox, insbesondere mit src/main.tsx ungefähr in den Zeilen 667-702, und reproduziere das Problem auf der zweiten, dritten oder vierten Seite. Untersuche getToggleAllPageRowsSelectedHandler und das Verhalten der kontrollierten Paginierung. Erledigt ist es, wenn die Auswahl im Header die aktuell angezeigte Seite statt der ersten Seite auswählt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the bug
When I try to use table row selection with fully controlled state and i'm on the second page, then it selects the first page.
I think it's either the selection function is not accounting for the page index in getToggleAllPageRowsSelectedHandler OR it is re-rendering the page index back to 0.
Your minimal, reproducible example
Steps to reproduce
- Go to second, third, or fourth page of table
- Click the header selection
- See that something did get selected.
- Go back to first page and see the first page gets selected.
Expected behavior
As a user I expect to see the page that im on get selected when using the header selection.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
mac OS, chrome, Version 112.0.5615.49 (Official Build) (arm64)
react-table version
8.8.5
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 28.5k
- Forks
- 3.6k
- Ø Merge
- 1 T. 3 Std.
- Gemergte PRs (30 T.)
- 22
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TanStack/table
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
TanStack/table#6601 · 5 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Cast required to access custom options when defining a custom plugin/featureEvtl. vergeben @sorena-paydar hat das vor 26 Tagen übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
-
`aggregatedCell` not typed against bound `cellComponents` in `createAppColumnHelper`Evtl. vergeben @cpruijsen hat das vor 36 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
TanStack/table#6577 · 6 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Leaf rows are not calculated correctlyEvtl. vergeben @sarathkumarsasi hat das vor 51 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
TanStack/table#6573 · 4 Kommentare · 2 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
area:plugins enhancement platform:vscode
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
anthropics/claude-code#103166 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add: Add pogo tv indiaOffencheck:failed streams:add
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
iptv-org/iptv#55744 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 90/100
jitsi/jitsi-meet#18021 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
spec: discovery input example can contain multiple aliases for one parameter, with no canonical oneOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
x402-foundation/x402#3841 ·
Maintainer antworten meist innerhalb von 1 Tag