Browse Source

Trigger change on values with empty value. Closes #2835

pull/2872/head
Artur Arseniev 6 years ago
parent
commit
2e53d1543c
  1. 3
      src/style_manager/model/Property.js

3
src/style_manager/model/Property.js

@ -74,7 +74,8 @@ const Property = Backbone.Model.extend(
setValue(value, complete = 1, opts = {}) {
const parsed = this.parseValue(value);
const avoidStore = !complete;
!avoidStore && this.set({ value: '' }, { avoidStore, silent: true });
!avoidStore &&
this.set({ value: undefined }, { avoidStore, silent: true });
this.set(parsed, { avoidStore, ...opts });
},

Loading…
Cancel
Save