@testing-library/user-event 14.0.0-beta.1 → 14.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,11 +13,18 @@ function isVisible(element) {
13
13
  for (let el = element; (_el = el) != null && _el.ownerDocument; el = el.parentElement) {
14
14
  var _el;
15
15
 
16
- const display = window.getComputedStyle(el).display;
16
+ const {
17
+ display,
18
+ visibility
19
+ } = window.getComputedStyle(el);
17
20
 
18
21
  if (display === 'none') {
19
22
  return false;
20
23
  }
24
+
25
+ if (visibility === 'hidden') {
26
+ return false;
27
+ }
21
28
  }
22
29
 
23
30
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testing-library/user-event",
3
- "version": "14.0.0-beta.1",
3
+ "version": "14.0.0-beta.2",
4
4
  "description": "Fire events the same way the user does",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [