mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 13:06:11 +02:00
🐛 Fix sloppy behaviour on tokens value inputs
This commit is contained in:
parent
887fa6b77b
commit
051c2a7e99
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue