Skip to content

Commit

Permalink
fix(onClickOutside): fix outside click on html element in ios (#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbng committed Jul 30, 2023
1 parent 8032933 commit 9091e2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/onClickOutside/index.ts
Expand Up @@ -51,6 +51,7 @@ export function onClickOutside<T extends OnClickOutsideOptions>(
_iOSWorkaround = true
Array.from(window.document.body.children)
.forEach(el => el.addEventListener('click', noop))
window.document.documentElement.addEventListener('click', noop)
}

let shouldListen = true
Expand Down

0 comments on commit 9091e2c

Please sign in to comment.