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.
This commit is contained in:
Nicolas Gallagher
2018-02-18 16:17:11 -08:00
parent 893963a799
commit b4e4bfbb3c

View File

@@ -21,18 +21,12 @@ import React from 'react';
* and remove event handlers when disabled.
*/
const eventHandlerNames = {
onBlur: true,
onClick: true,
onClickCapture: true,
onMoveShouldSetResponder: true,
onMoveShouldSetResponderCapture: true,
onResponderGrant: true,
onResponderMove: true,
onResponderReject: true,
onContextMenu: true,
onFocus: true,
onResponderRelease: true,
onResponderTerminate: true,
onResponderTerminationRequest: true,
onStartShouldSetResponder: true,
onStartShouldSetResponderCapture: true,
onTouchCancel: true,
onTouchCancelCapture: true,
onTouchEnd: true,