-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
📝 Feedback
We rely on onClick
events propagating through our dom structure. Sometimes the source of the event will be from a component using react-aria
's useButton
hook, but it appears that usePress
stops the propagation. This forces us to stub stopPropagation
for all events passed into react-aria
.
We'd like some context on why usePress
implements this behavior.
🔦 Context
Event bubbling is necessary in Retool's editor to support selecting interactive components. We've been very happy leveraging react-aria
to improve our accessibility, but are confused by the decision to prevent events from bubbling.
💻 Code Sample
garrettberg, tinleym, ProTip, desarrollo-junior-grafosoft and piecyk
Metadata
Metadata
Assignees
Labels
No labels