فهرست منبع

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

vian 5 سال پیش
والد
کامیت
a18382a75c
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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;