From 92455954e10641d212e51c256596d3097927fae2 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 20 Jan 2024 17:58:33 +0400 Subject: [PATCH] Up --- src/trait_manager/model/Trait.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trait_manager/model/Trait.ts b/src/trait_manager/model/Trait.ts index 4c8fba336..f6c88c148 100644 --- a/src/trait_manager/model/Trait.ts +++ b/src/trait_manager/model/Trait.ts @@ -203,7 +203,7 @@ export default class Trait extends Model { */ setValue(value: any, opts: TraitSetValueOptions = {}) { const valueOpts: { avoidStore?: boolean } = {}; - const setValue = this.get('setValue'); + const { setValue } = this.attributes; if (setValue) { setValue({ @@ -303,6 +303,7 @@ export default class Trait extends Model { this.em?.trigger('trait:update', { trait: this, component: this.target, + value, }); }