Skip to content

Multiselect Shift Takes Last Selection as Startpoint #176

@TimmNL

Description

@TimmNL

Describe the bug
When I have multi-select implemented and I select item 1 to 3 (by holding shift after selecting the 1st item), and afterwards try to add the 4th and 5th option by still holding shift and clicking the 5th item, it only selects the 3th, 4th and 5th item. Item 1 and 2 are unselected.

To Reproduce
Try any multi-select supported demo on the site itself (e.g. https://headless-tree.lukasbach.com/features/dnd):

  • Select the first item
  • Press and hold shift
  • Select the 3rd item -> Item 1, 2 and 3 are selected
  • Select the 5th item (so still holding shift) -> Item 3 till 5 are selected, 1 and 2 are unselected

Expected behavior
I would expect that the first item selected before pressing shift would remain the starting point of the multi-select. So in the case described above, that items 1 to 5 are all selected.

Screenshots
Image
Image

Additional context

  • Version 1.5.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions