🐛 Fix typing full token name on numeric input

This commit is contained in:
Eva Marco
2026-05-19 09:00:14 +02:00
parent a9d0feb8fd
commit c07301a929

View File

@@ -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*)