Add static view config for onClickCapture

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

fbshipit-source-id: 15acc16b162e0dd17513c6452008331e3fee4526
This commit is contained in:
Ramanpreet Nara
2024-05-02 12:46:05 -07:00
committed by Facebook GitHub Bot
parent ef1e84e425
commit 8c3f8a3e6b
2 changed files with 2 additions and 0 deletions
@@ -306,6 +306,7 @@ const validAttributesForEventProps = {
// Pointer events
onClick: true,
onClickCapture: true,
onPointerEnter: true,
onPointerEnterCapture: true,
onPointerLeave: true,
@@ -374,6 +374,7 @@ const validAttributesForEventProps = ConditionallyIgnoredEventHandlers({
// Pointer events
onClick: true,
onClickCapture: true,
onPointerUp: true,
onPointerDown: true,
onPointerCancel: true,