Skip to content

Commit b4e4bfb

Browse files
committed
Fix the event handlers with event normalization
Events are now normalized within the responder system, so those handlers don't need to be listed anymore. Recently added events (blur, contextmenu, focus) are now also normalized.
1 parent 893963a commit b4e4bfb

File tree

1 file changed

+3
-9
lines changed
  • packages/react-native-web/src/exports/createElement

1 file changed

+3
-9
lines changed

packages/react-native-web/src/exports/createElement/index.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,12 @@ import React from 'react';
2121
* and remove event handlers when disabled.
2222
*/
2323
const eventHandlerNames = {
24+
onBlur: true,
2425
onClick: true,
2526
onClickCapture: true,
26-
onMoveShouldSetResponder: true,
27-
onMoveShouldSetResponderCapture: true,
28-
onResponderGrant: true,
29-
onResponderMove: true,
30-
onResponderReject: true,
27+
onContextMenu: true,
28+
onFocus: true,
3129
onResponderRelease: true,
32-
onResponderTerminate: true,
33-
onResponderTerminationRequest: true,
34-
onStartShouldSetResponder: true,
35-
onStartShouldSetResponderCapture: true,
3630
onTouchCancel: true,
3731
onTouchCancelCapture: true,
3832
onTouchEnd: true,

0 commit comments

Comments
 (0)