From 1276f6f85dc4e3403c549d4940d358915ecac321 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 13 Dec 2018 11:30:59 -0800 Subject: [PATCH] Use new attributeStyleMap for elements More info here: https://developers.google.com/web/updates/2018/03/cssom --- src/text-editor-component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index 1e5f1f260..e41a1c739 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -4433,7 +4433,7 @@ class NodePool { if (element) { element.className = className || '' - element.styleMap.forEach((value, key) => { + element.attributeStyleMap.forEach((value, key) => { if (!style || style[key] == null) element.style[key] = '' }) if (style) Object.assign(element.style, style)