Skip to content

Expected behavior of Multi-select with extendSelection #4947

Answered by snowystinger
jaknas asked this question in Q&A
Discussion options

You must be logged in to vote

I agree, some work should be done here. I think the select + unselect then shift is a bug, if you don't mind opening an issue. This can be observed in our docs as well https://react-spectrum.adobe.com/react-spectrum/ListView.html#example

I think the anchorKey should be set to the focusedKey when the shift key is pressed. I'm not sure about non-contiguous multi select, if shift should always add to the current selection. But we can at least address the anchorKey.

We accept PR's if you feel like making one.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jaknas
Comment options

@snowystinger
Comment options

@jaknas
Comment options

Answer selected by jaknas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants