From 965f850e68c186a3586bf6500126dd9bf2e1e6dd Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Sun, 6 Aug 2017 17:50:01 +0800 Subject: [PATCH] Assign cssText string to same named property on target --- src/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util.js b/src/Util.js index 2c79486..4dac94d 100644 --- a/src/Util.js +++ b/src/Util.js @@ -5,7 +5,7 @@ export const contains = (bit: number, value: number): boolean => (bit & value) ! export const copyCSSStyles = (style: CSSStyleDeclaration, target: HTMLElement): void => { if (style.cssText) { - target.style = style.cssText; + target.style.cssText = style.cssText; } else { // Edge does not provide value for cssText for (let i = style.length - 1; i >= 0; i--) {