mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
🐛 Fix issue on changing from gradient to solid color on colorpicker
This commit is contained in:
parent
027a7a457d
commit
6b4a85cd15
@ -778,7 +778,8 @@
|
||||
[{:keys [type current-color stops gradient opacity] :as state}]
|
||||
(cond
|
||||
(= type :color)
|
||||
(clear-color-components current-color)
|
||||
(-> (clear-color-components current-color)
|
||||
(dissoc :offset))
|
||||
|
||||
(= type :image)
|
||||
(clear-image-components current-color)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user