diff --git a/addons/web_editor/static/src/js/backend/convert_inline.js b/addons/web_editor/static/src/js/backend/convert_inline.js index 0974748bd9f..e71b4bda640 100644 --- a/addons/web_editor/static/src/js/backend/convert_inline.js +++ b/addons/web_editor/static/src/js/backend/convert_inline.js @@ -284,7 +284,7 @@ function classToStyle($editable, cssRules) { const $target = $(node); const css = _getMatchedCSSRules(node, cssRules); // Flexbox - for (const styleName in node.style) { + for (const styleName of node.style) { if (styleName.includes('flex') || `${node.style[styleName]}`.includes('flex')) { node.style[styleName] = ''; }