mirror of
https://github.com/penpot/penpot.git
synced 2026-05-19 14:14:05 -04:00
🐛 Fix typing full token name on numeric input
This commit is contained in:
@@ -421,7 +421,8 @@
|
||||
token (get-option-by-name options name)]
|
||||
(if token
|
||||
(apply-token (:resolved-value token) name)
|
||||
(apply-value (mf/ref-val last-value*)))))
|
||||
(apply-value (mf/ref-val last-value*))))
|
||||
(reset! is-open* false))
|
||||
|
||||
enter?
|
||||
(if is-open
|
||||
@@ -692,8 +693,10 @@
|
||||
|
||||
token-props
|
||||
(when (and token-applied-name (not= :multiple token-applied-name))
|
||||
(let [token (get-option-by-name dropdown-options token-applied-name)
|
||||
id (get token :id)
|
||||
(let [token (get-option-by-name @dropdown-options token-applied-name)
|
||||
id (or (get token :id)
|
||||
(some-> (get token-applied :id)
|
||||
(dm/str)))
|
||||
label (or (get token :name) applied-token-name)
|
||||
token-value (or (get token :resolved-value)
|
||||
(or (mf/ref-val last-value*)
|
||||
|
||||
Reference in New Issue
Block a user