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

DataTable with paginator and selection #2612

Closed
xAl3xFx opened this issue Jan 26, 2022 · 0 comments
Closed

DataTable with paginator and selection #2612

xAl3xFx opened this issue Jan 26, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@xAl3xFx
Copy link

xAl3xFx commented Jan 26, 2022

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[ x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior
When you have a DataTable with multiselect / checkbox and paginator, the selection with shift key works fine only on the first page. When you go to the second page for example and click on a row and then use shift + click on other row the problem occurs.

Expected behavior
Selection with meta key should work properly on all pages.

Minimal reproduction of the problem with instructions

  • Go to https://primefaces.org/primereact/datatable/

  • Go to the second page of the table

  • Select the first element

  • Hold shift and select the fifth element. ( Here you will notice that no rows are selected)

  • Now try to select any other row from the page and look at the console. There should be an error like this : Uncaught TypeError: Cannot read properties of undefined (reading 'rowIndex').

  • React version:
    Demo Site

  • PrimeReact version:
    7.2.0

  • Browser: [all ]

@yigitfindikli yigitfindikli added the Status: Pending Review Issue or pull request is being reviewed by Core Team label Feb 10, 2022
@yigitfindikli yigitfindikli added this to the 7.2.1 milestone Feb 10, 2022
@yigitfindikli yigitfindikli added Type: Bug Issue contains a defect related to a specific component. and removed Status: Pending Review Issue or pull request is being reviewed by Core Team labels Feb 17, 2022
@yigitfindikli yigitfindikli assigned mcandu and unassigned mcandu Feb 17, 2022
mertsincan added a commit that referenced this issue Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

3 participants