We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d870383 commit 7fea63fCopy full SHA for 7fea63f
src/utils/dom.js
@@ -60,6 +60,10 @@ export const isVisible = el => /* istanbul ignore next: getBoundingClientRect()
60
if (!isElement(el) || !contains(document.body, el)) {
61
return false
62
}
63
+ if (el.style.display === 'none') {
64
+ // We do this check to help with vue-test-utils when using v-show
65
+ return false
66
+ }
67
// All browsers support getBoundingClientRect(), except JSDOM as it returns all 0's for values :(
68
// So any tests that need isVisible will fail in JSDOM
69
const bcr = getBCR(el)
0 commit comments