Skip to content

Commit

Permalink
Codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tho-masn authored Sep 16, 2020
1 parent 14dabbb commit f9fa3a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/v-click-outside.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ function onFauxIframeClick({ el, event, handler, middleware }) {
// https://stackoverflow.com/q/2381336#comment61192398_23231136
setTimeout(() => {
const { activeElement } = document
if (activeElement && activeElement.tagName === 'IFRAME' && !el.contains(activeElement)) {
if (
activeElement &&
activeElement.tagName === 'IFRAME' &&
!el.contains(activeElement)
) {
execHandler({ event, handler, middleware })
}
}, 0)
Expand Down

0 comments on commit f9fa3a0

Please sign in to comment.