Browse Source

Add unset method for custom style properties

pull/3563/head
Artur Arseniev 5 years ago
parent
commit
773f9dee26
  1. 6
      src/style_manager/view/PropertyView.js

6
src/style_manager/view/PropertyView.js

@ -151,6 +151,7 @@ export default Backbone.View.extend({
clear(ev) {
ev && ev.stopPropagation();
this.model.clearValue();
this.__unset();
// Skip one stack with setTimeout to avoid inconsistencies (eg. visible on padding composite clear)
setTimeout(() => this.targetUpdated());
},
@ -644,6 +645,11 @@ export default Backbone.View.extend({
this.$input = null;
},
__unset() {
const unset = this.unset && this.unset.bind(this);
unset && unset(this._getClbOpts());
},
__update(value) {
const update = this.update && this.update.bind(this);
update &&

Loading…
Cancel
Save