Skip to content

Commit

Permalink
fix(onClickOutside): fix handler type
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng committed Jul 19, 2022
1 parent 42fd0ae commit 06a3acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/onClickOutside/index.ts
Expand Up @@ -33,7 +33,7 @@ export interface OnClickOutsideOptions extends ConfigurableWindow {
*/
export function onClickOutside<T extends OnClickOutsideOptions>(
target: MaybeElementRef,
handler: <E = T['detectIframe'] extends true ? PointerEvent | FocusEvent : PointerEvent>(evt: E) => void,
handler: <E extends T['detectIframe'] extends true ? PointerEvent | FocusEvent : PointerEvent>(evt: E) => void,
options: T = {} as T,
) {
const { window = defaultWindow, ignore, capture = true, detectIframe = false } = options
Expand Down

0 comments on commit 06a3acb

Please sign in to comment.