diff --git a/src/trait_manager/model/Trait.ts b/src/trait_manager/model/Trait.ts index dd93b5257..df11b03e2 100644 --- a/src/trait_manager/model/Trait.ts +++ b/src/trait_manager/model/Trait.ts @@ -53,7 +53,14 @@ export interface TraitProperties { text?: string; full?: boolean; getValue?: (props: { editor: Editor; trait: Trait; component: Component }) => any; - setValue?: (props: { value: any; editor: Editor; trait: Trait; component: Component; partial: boolean }) => void; + setValue?: (props: { + value: any; + editor: Editor; + trait: Trait; + component: Component; + partial: boolean; + emitUpdate: () => void; + }) => void; } type TraitOption = { @@ -177,6 +184,7 @@ export default class Trait extends Model { trait: this, component: this.target, partial: !!opts.partial, + emitUpdate: () => this.targetUpdated(), }); return; }