diff --git a/src/components/utils/DomHandler.js b/src/components/utils/DomHandler.js index 153f6bd57..f8621ca98 100755 --- a/src/components/utils/DomHandler.js +++ b/src/components/utils/DomHandler.js @@ -488,10 +488,10 @@ export default { applyStyle(element, style) { if (typeof style === 'string') { - element.style.cssText = this.style; + element.style.cssText = style; } else { - for (let prop in this.style) { + for (let prop in style) { element.style[prop] = style[prop]; } }