You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use the useLongPress hook with react-aria-components Row component.
The props provided by useLongPress get filtered by filterDOMProps and are not rendered.
🤔 Expected Behavior?
event handlers and labelling like what is provided by useLongPress should work with the Row.
😯 Current Behavior
props are filtered by filterDOMProps.
💁 Possible Solution
filterDOMProps could allow labelling props so the aria-describedby is let on to the TR.
for the event handling - a propNames set can be included which allows the events required by useLongPress - onKeyDown, onClick, onDragStart, onMouseDown, onPointerDown, onPointerEnter, onPointerLeave, onPointerUp.
Please let me know if this is ok and I will make a PR.
🔦 Context
We have a requirement to allow LongPress and Press on a table row to trigger an action.