Browse Source

closing color picker if click event happens on canvas, saving the current value

pull/2695/head
Juan 6 years ago
parent
commit
fce333b4e6
  1. 6
      src/domain_abstract/ui/InputColor.js

6
src/domain_abstract/ui/InputColor.js

@ -117,6 +117,12 @@ export default Input.extend({
}
});
this.em &&
this.em.on('component:selected', () => {
changed = 1;
colorEl.spectrum('hide');
});
this.colorEl = colorEl;
}
return this.colorEl;

Loading…
Cancel
Save