Explorar o código

fix(handsontable): isVisible的display none判断改为使用getComputedStyle的方式。性能待观察

vian %!s(int64=5) %!d(string=hai) anos
pai
achega
a18382a75c
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      handsontable/package.json
  2. 1 1
      handsontable/src/helpers/dom/element.js

+ 1 - 1
handsontable/package.json

@@ -10,7 +10,7 @@
     "url": "https://github.com/handsontable/handsontable/issues"
   },
   "author": "Handsoncode <hello@handsontable.com>",
-  "version": "6.3.5",
+  "version": "6.3.6",
   "browser": "dist/handsontable.js",
   "main": "commonjs/index.js",
   "module": "es/index.js",

+ 1 - 1
handsontable/src/helpers/dom/element.js

@@ -475,7 +475,7 @@ export function isVisible(elem) {
       } else {
         return false; // this is a node detached from document in IE8
       }
-    } else if (next.style.display === 'none') {
+    } else if ( window.getComputedStyle(next).getPropertyValue('display') === 'none') {
       return false;
     }
     next = next.parentNode;