Replies: 1 comment 4 replies
-
Should there be selection in the table you're dropping on? It looks like maybe not, I don't see a check box. Otherwise, you could possibly put it into a controlled state and just not respond to the 'onSelectionChange' when it's DnD? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there! I was curious if it is possible to prevent row selection on the rows when dropped in to a new table?
The example on the docs shows this pretty clearly: https://react-spectrum.adobe.com/react-aria/Table.html#drag-between-tables
When you drag one row (without selecting the checkbox) and drop it in the other table, the other table automatically selects this newly dropped row. This may be nice in some circumstances, but I'm curious if it's possible to prevent that capability?
Example from docs
Screen.Recording.2025-08-25.at.1.20.21.PM.mov
Same behavior occurring in my app
Screen.Recording.2025-08-25.at.1.21.22.PM.mov
I would like to disable auto select on drop because it triggers the "oh you have items selected" prompt in my sidebar when I drop the items and the user would have to click "cancel" to deselect which is kind of cumbersome. Am I missing something? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions