From e4b97d06f7c72d6160eb0ac9f84d83fca0159d01 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 5 Apr 2022 11:50:00 +0200 Subject: [PATCH] Avoid triggering __p in styleable:change event --- src/domain_abstract/model/Styleable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/domain_abstract/model/Styleable.js b/src/domain_abstract/model/Styleable.js index 9b69617b5..301aa0dd3 100644 --- a/src/domain_abstract/model/Styleable.js +++ b/src/domain_abstract/model/Styleable.js @@ -42,6 +42,8 @@ export default { const propNew = { ...prop }; this.set('style', propNew, opts); const diff = shallowDiff(propOrig, propNew); + // Delete the property used for partial updates + delete diff.__p; keys(diff).forEach(pr => { const em = this.em; if (opts.noEvent) return;