From f225f2263c5525a41874e95479dd3e5c943b68eb Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 17 Mar 2020 23:10:11 +0100 Subject: [PATCH] Avoid rendering of private CSS properties --- src/domain_abstract/model/Styleable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain_abstract/model/Styleable.js b/src/domain_abstract/model/Styleable.js index 5b81414b5..5f2ecd183 100644 --- a/src/domain_abstract/model/Styleable.js +++ b/src/domain_abstract/model/Styleable.js @@ -97,7 +97,8 @@ export default { const imp = opts.important; const important = isArray(imp) ? imp.indexOf(prop) >= 0 : imp; const value = `${style[prop]}${important ? ' !important' : ''}`; - value && result.push(`${prop}:${value};`); + const propPrv = prop.substr(0, 2) == '__'; + value && !propPrv && result.push(`${prop}:${value};`); } return result.join('');