File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ const ClickAwayListener: FunctionComponent<Props> = ({
54
54
onClickAway,
55
55
focusEvent = 'focusin' ,
56
56
mouseEvent = 'click' ,
57
- touchEvent = 'touchend'
57
+ touchEvent = 'touchend' ,
58
+ ...rest
58
59
} ) => {
59
60
const node = useRef < HTMLElement | null > ( null ) ;
60
61
const bubbledEventTarget = useRef < EventTarget | null > ( null ) ;
@@ -135,7 +136,8 @@ const ClickAwayListener: FunctionComponent<Props> = ({
135
136
ref : combinedRef ,
136
137
[ mappedFocusEvent ] : handleBubbledEvents ( mappedFocusEvent ) ,
137
138
[ mappedMouseEvent ] : handleBubbledEvents ( mappedMouseEvent ) ,
138
- [ mappedTouchEvent ] : handleBubbledEvents ( mappedTouchEvent )
139
+ [ mappedTouchEvent ] : handleBubbledEvents ( mappedTouchEvent ) ,
140
+ ...rest
139
141
} )
140
142
) ;
141
143
} ;
You can’t perform that action at this time.
0 commit comments