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
We are trying to migrate our components to react-aria. One place where we are stuck is that we are not able to incrementally update our components. We want to use usePress but at a lot of other components that receive that event in callbacks expect properties like stopPropagation, stopImmediatePropagation etc. I totally understand why react-aria doesn't include that but absence of those properties makes it hard to migrate.
Is it possible that PressEvent can also include a nativeEvent property like useFocus event? This will make migrations much easier.
I know I can manually add those noop function but in some places the logic depends on other properties. We would like to make those properties more robust but having nativeEvent will ensure that we can do that our own pace.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello wonderful people,
We are trying to migrate our components to react-aria. One place where we are stuck is that we are not able to incrementally update our components. We want to use
usePressbut at a lot of other components that receive that event in callbacks expect properties likestopPropagation,stopImmediatePropagationetc. I totally understand why react-aria doesn't include that but absence of those properties makes it hard to migrate.Is it possible that
PressEventcan also include anativeEventproperty like useFocus event? This will make migrations much easier.I know I can manually add those noop function but in some places the logic depends on other properties. We would like to make those properties more robust but having
nativeEventwill ensure that we can do that our own pace.Beta Was this translation helpful? Give feedback.
All reactions