0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 10:41:29 -05:00

🐛 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

@ -23,6 +23,7 @@
- Fix unexpected exception when uploading image
- Fix 404 when acces shared link [#615](https://github.com/penpot/penpot/issues/615)
- Fix show correct error when google auth is disabled
- Fix apply a color to a text selection from color palette was not working
### Community contributions by (Thank you! :heart:)

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?