mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 19:27:44 +08:00
Fix table 'styleSheet' is undefined
This commit is contained in:
parent
228fee1e16
commit
6975c481fe
@ -196,6 +196,7 @@
|
||||
if (this.styleNode) {
|
||||
let styleSheet = this.styleNode.sheet;
|
||||
|
||||
if (!styleSheet) return;
|
||||
for (let i = 0, j = styleSheet.cssRules.length; i < j; i++) {
|
||||
styleSheet.deleteRule(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user