0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

Merge pull request #4407 from penpot/alotor-bugfix-41

🐛 Fix problem with colorpicker
This commit is contained in:
Alejandro 2024-04-10 16:01:46 +02:00 committed by GitHub
commit dd4b5f3eb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,12 +118,9 @@
on-change-tab
(mf/use-fn
(fn [event]
(let [tab (-> (dom/get-current-target event)
(dom/get-data "tab")
(keyword))]
(reset! active-color-tab tab)
(dc/set-active-color-tab! tab))))
(fn [tab]
(reset! active-color-tab tab)
(dc/set-active-color-tab! tab)))
handle-change-mode
(mf/use-fn