mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
ef1e84e425
commit
8c3f8a3e6b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user