mirror of
https://github.com/penpot/penpot.git
synced 2026-09-12 15:09:38 +00:00
🐛 Fix tokens not being editable
This commit is contained in:
parent
ef61f9c7aa
commit
62ca665d55
@ -352,7 +352,7 @@
|
|||||||
|
|
||||||
on-submit
|
on-submit
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps validate-name validate-descripion token resolved-tokens)
|
(mf/deps validate-name validate-descripion token active-theme-tokens)
|
||||||
(fn [e]
|
(fn [e]
|
||||||
(dom/prevent-default e)
|
(dom/prevent-default e)
|
||||||
(mf/set-ref-val! cancel-ref nil)
|
(mf/set-ref-val! cancel-ref nil)
|
||||||
@ -370,7 +370,7 @@
|
|||||||
(validate-token-value+ {:value final-value
|
(validate-token-value+ {:value final-value
|
||||||
:name-value final-name
|
:name-value final-name
|
||||||
:token token
|
:token token
|
||||||
:tokens resolved-tokens})])
|
:tokens active-theme-tokens})])
|
||||||
(p/finally (fn [result err]
|
(p/finally (fn [result err]
|
||||||
;; The result should be a vector of all resolved validations
|
;; The result should be a vector of all resolved validations
|
||||||
;; We do not handle the error case as it will be handled by the components validations
|
;; We do not handle the error case as it will be handled by the components validations
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user