Browse Source

Check if input exists before remove

ui-module
Artur Arseniev 5 years ago
parent
commit
1f3c9a469a
  1. 3
      src/style_manager/view/PropertyColorView.js

3
src/style_manager/view/PropertyColorView.js

@ -9,7 +9,8 @@ export default PropertyIntegerView.extend({
remove() {
PropertyIntegerView.prototype.remove.apply(this, arguments);
this.inputInst.remove();
const inp = this.inputInst;
inp && inp.remove();
['inputInst', '$color'].forEach(i => (this[i] = {}));
},

Loading…
Cancel
Save