From 30dd04f9cb58b740268e78048c984821c47c7c14 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 31 Dec 2021 02:23:00 +0100 Subject: [PATCH] Fix Composite clear --- src/style_manager/model/PropertyComposite.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/style_manager/model/PropertyComposite.js b/src/style_manager/model/PropertyComposite.js index fb57bcc6c..594aa22d0 100644 --- a/src/style_manager/model/PropertyComposite.js +++ b/src/style_manager/model/PropertyComposite.js @@ -129,6 +129,11 @@ export default class PropertyComposite extends Property { } this.__upTargetsStyle(style, opts); + + // Keep track of the values for the not detached properties, + // otherwise clear() will not trigger changes. + // TODO: maybe to move this logic in sm.__upProp + !this.isDetached() && this.set('value', style[this.getName()], { silent: true }); } _up(props, opts = {}) {