From fce333b4e6abf5ac3a759312de0187ede6a80f87 Mon Sep 17 00:00:00 2001 From: Juan Date: Wed, 1 Apr 2020 14:31:57 +0200 Subject: [PATCH] closing color picker if click event happens on canvas, saving the current value --- src/domain_abstract/ui/InputColor.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/domain_abstract/ui/InputColor.js b/src/domain_abstract/ui/InputColor.js index d89ea8322..357d372e0 100644 --- a/src/domain_abstract/ui/InputColor.js +++ b/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;