File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,15 @@ interface Props extends HTMLAttributes<HTMLElement> {
26
26
const eventTypeMapping = {
27
27
click : 'onClick' ,
28
28
focusin : 'onFocus' ,
29
- focusout : 'onFocus ' ,
29
+ focusout : 'onBlur ' ,
30
30
mousedown : 'onMouseDown' ,
31
31
mouseup : 'onMouseUp' ,
32
32
touchstart : 'onTouchStart' ,
33
33
touchend : 'onTouchEnd'
34
34
} ;
35
35
36
+ const reactMajorVersion = parseInt ( React . version . split ( '.' ) [ 0 ] , 10 ) ;
37
+
36
38
const mergeRefs = < T extends any > (
37
39
refs : Array < Ref < T > | undefined | null >
38
40
) : RefCallback < T > => {
@@ -47,8 +49,6 @@ const mergeRefs = <T extends any>(
47
49
} ;
48
50
} ;
49
51
50
- const reactMajorVersion = parseInt ( React . version . split ( '.' ) [ 0 ] , 10 ) ;
51
-
52
52
const ClickAwayListener : FunctionComponent < Props > = ( {
53
53
children,
54
54
onClickAway,
You can’t perform that action at this time.
0 commit comments