Skip to content

DataTable: Shift-Selection does not work on page 2+ with lazy loading enabled #7778

@rayman-de

Description

@rayman-de

Describe the bug

When having lazy and paginator active in a DataTable, selection of multiple rows with the shift key does not work on page 2 and after

Reproducer

https://stackblitz.com/edit/vyuvtbvc-aww9fm7b

System Information

(From Stackblitz:)
  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    primereact: latest => 10.9.3 
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

  • Have a DataTable with lazy loading and paginator enabled.
  • Go to page 2
  • Click on a row
  • Hold shift and press on another row

Expected behavior

Shift-selection should work

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a defect related to a specific component.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions