mirror of
https://github.com/penpot/penpot.git
synced 2025-05-27 23:26:12 +02:00
🐛 Fixes problem change color to texts from the palette
This commit is contained in:
parent
8e5fd5892e
commit
5336bbbe65
2 changed files with 4 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue