Skip to content

Commit

Permalink
Add static view config for onClickCapture
Browse files Browse the repository at this point in the history
Summary:
onClick was made into a capture event in this diff: D45745906
- Partial fix: D51551255
- Full fix: this diff.

**Note:** This prop did not work for bridgeless mode.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D56849867
  • Loading branch information
RSNara authored and facebook-github-bot committed May 2, 2024
1 parent 67fa725 commit b7040e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ const validAttributesForEventProps = {

// Pointer events
onClick: true,
onClickCapture: true,
onPointerEnter: true,
onPointerEnterCapture: true,
onPointerLeave: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ const validAttributesForEventProps = ConditionallyIgnoredEventHandlers({

// Pointer events
onClick: true,
onClickCapture: true,
onPointerUp: true,
onPointerDown: true,
onPointerCancel: true,
Expand Down

0 comments on commit b7040e9

Please sign in to comment.