🐛 Fix sloppy behaviour on tokens value inputs

This commit is contained in:
Xavier Julian 2025-05-16 10:48:28 +02:00 committed by Xaviju
parent 887fa6b77b
commit 051c2a7e99
2 changed files with 2 additions and 3 deletions

View file

@ -7,7 +7,6 @@
(ns app.main.ui.workspace.tokens.components.controls.input-tokens-value
(:require-macros [app.main.style :as stl])
(:require
[app.common.data :as d]
[app.common.data.macros :as dm]
[app.main.ui.ds.controls.utilities.input-field :refer [input-field*]]
[app.main.ui.ds.controls.utilities.label :refer [label*]]
@ -43,7 +42,7 @@
:type "text"
:class (stl/css :input)
:placeholder placeholder
:value (d/nilv value "")
:value value
:variant "comfortable"
:hint-type (when error "error")
:slot-start swatch

View file

@ -560,7 +560,7 @@
[:> input-tokens-value*
{:placeholder (tr "workspace.token.token-value-enter")
:label (tr "workspace.token.token-value")
:value (mf/ref-val value-ref)
:default-value (mf/ref-val value-ref)
:ref value-input-ref
:color color
:on-change on-update-value