@samitouri / QOS-React / commits / d9839740ef

React events: remove unused types (#15503)

Nicolas Gallagher committed Apr 25, 2019 at 15:11 UTC d9839740ef687bb2ae11cc408f3699aa5c958742
3 files changed +1 -3
packages/react-events/src/Focus.js
+1 -1
@@ -19,7 +19,6 @@ type FocusProps = {
19 onBlur: (e: FocusEvent) => void,
20 onFocus: (e: FocusEvent) => void,
21 onFocusChange: boolean => void,
22 - stopPropagation: boolean,
22 };
23
24 type FocusState = {
@@ -105,6 +104,7 @@ const FocusResponder = {
104 focusTarget: null,
105 };
106 },
107 + stopLocalPropagation: true,
108 onEvent(
109 event: ReactResponderEvent,
110 context: ReactResponderContext,
packages/react-events/src/Hover.js
-1
@@ -27,7 +27,6 @@ type HoverProps = {
27 onHoverMove: (e: HoverEvent) => void,
28 onHoverStart: (e: HoverEvent) => void,
29 preventDefault: boolean,
30 - stopPropagation: boolean,
30 };
31
32 type HoverState = {
packages/react-events/src/Press.js
-1
@@ -39,7 +39,6 @@ type PressProps = {
39 left: number,
40 },
41 preventDefault: boolean,
42 - stopPropagation: boolean,
42 };
43
44 type PointerType = '' | 'mouse' | 'keyboard' | 'pen' | 'touch';