Skip to content

Cannot reorder multi-selected items under specific condition #8495

@andik222

Description

@andik222

Describe the bug

Reordering multiple selected items does not work if step n is selected first and then step n‑1. So if one selects the item n, then presses ctrl and selects the second item n-1 and then tries to reorder the items by clicking the up/down buttons, it doesn't work.
However, if step n‑1 is selected before step n, reordering works as expected.

Reproducer

No response

System Information

primereact: 10.9.5

Steps to reproduce the behavior

Aufzeichnung.2026-02-04.111352.mp4

Have a list of 4 items and multi-select item 3 and then 2 (as described above), press the up or down button => trying to move them up or down isn't working.
If you select first item 2 and then 3, moving up and down is working.
Can be reproduced here: https://primereact.org/orderlist/

Expected behavior

No response

Metadata

Metadata

Assignees

Labels

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

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions