We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4a7b99 commit 39e58e2Copy full SHA for 39e58e2
src/index.tsx
@@ -54,7 +54,8 @@ const ClickAwayListener: FunctionComponent<Props> = ({
54
onClickAway,
55
focusEvent = 'focusin',
56
mouseEvent = 'click',
57
- touchEvent = 'touchend'
+ touchEvent = 'touchend',
58
+ ...rest
59
}) => {
60
const node = useRef<HTMLElement | null>(null);
61
const bubbledEventTarget = useRef<EventTarget | null>(null);
@@ -135,7 +136,8 @@ const ClickAwayListener: FunctionComponent<Props> = ({
135
136
ref: combinedRef,
137
[mappedFocusEvent]: handleBubbledEvents(mappedFocusEvent),
138
[mappedMouseEvent]: handleBubbledEvents(mappedMouseEvent),
- [mappedTouchEvent]: handleBubbledEvents(mappedTouchEvent)
139
+ [mappedTouchEvent]: handleBubbledEvents(mappedTouchEvent),
140
141
})
142
);
143
};
0 commit comments