diff --git a/src/style_manager/model/Property.js b/src/style_manager/model/Property.js index daa8e4944..6ba14bc69 100644 --- a/src/style_manager/model/Property.js +++ b/src/style_manager/model/Property.js @@ -61,7 +61,7 @@ const Property = Backbone.Model.extend( * @return {this} */ clearValue(opts = {}) { - this.set({ value: undefined }, opts); + this.set({ value: undefined, status: '' }, opts); return this; }, diff --git a/src/style_manager/view/PropertyView.js b/src/style_manager/view/PropertyView.js index 24b412d48..4d9dcde73 100644 --- a/src/style_manager/view/PropertyView.js +++ b/src/style_manager/view/PropertyView.js @@ -253,8 +253,9 @@ export default Backbone.View.extend({ model.setValue(value, 0, { fromTarget: 1 }); if (em) { - em.trigger('styleManager:change', this, property, value); - em.trigger(`styleManager:change:${property}`, this, value); + const data = { status, targetValue, defaultValue, computedValue }; + em.trigger('styleManager:change', this, property, value, data); + em.trigger(`styleManager:change:${property}`, this, value, data); } },