🐛 Fixes problem change color to texts from the palette

This commit is contained in:
alonso.torres 2021-02-11 11:23:48 +01:00
parent 8e5fd5892e
commit 5336bbbe65
2 changed files with 4 additions and 1 deletions

View file

@ -173,13 +173,15 @@
options (dom/get-element-by-class "element-options")
assets (dom/get-element-by-class "assets-bar")
cpicker (dom/get-element-by-class "colorpicker-tooltip")
palette (dom/get-element-by-class "color-palette")
self (mf/ref-val self-ref)
selecting? (mf/ref-val selecting-ref)]
(when-not (or (and options (.contains options target))
(and assets (.contains assets target))
(and self (.contains self target))
(and cpicker (.contains cpicker target)))
(and cpicker (.contains cpicker target))
(and palette (.contains palette target)))
(do
(if selecting?