How to restrict Table drag interactions to only the drag handle? #8466
Unanswered
pmoeller91-yottaa
asked this question in
Q&A
Replies: 0 comments
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.
-
When using the Table from react-aria-components, is it possible to restrict drag interactions with the mouse to only be triggered while clicking on the drag handle?
Currently, clicking and dragging anywhere in a row will trigger drag interactions for the row. While that is Fine, it does not quite match the desired behavior, and there does not seem to be any way included to customize this behavior, either in the
useDragAndDrop
implementation (this would be ideal) or in the low-level hooks themselves, even.If anyone knows a solution, that would be appreciated. Ideally it would be possible to restrict the element(s) that can trigger drag interactions, possibly even allowing separate configuration between mouse and touch. For my case at a minimum right now it would be nice if I could restrict drag interactions to only the button with
slot="drag"
, even if it came at the potential cost of making touch interactions slightly more difficult.Beta Was this translation helpful? Give feedback.
All reactions