mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 12:36:14 +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
|
(ns app.main.ui.workspace.tokens.components.controls.input-tokens-value
|
||||||
(:require-macros [app.main.style :as stl])
|
(:require-macros [app.main.style :as stl])
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
[app.main.ui.ds.controls.utilities.input-field :refer [input-field*]]
|
[app.main.ui.ds.controls.utilities.input-field :refer [input-field*]]
|
||||||
[app.main.ui.ds.controls.utilities.label :refer [label*]]
|
[app.main.ui.ds.controls.utilities.label :refer [label*]]
|
||||||
|
@ -43,7 +42,7 @@
|
||||||
:type "text"
|
:type "text"
|
||||||
:class (stl/css :input)
|
:class (stl/css :input)
|
||||||
:placeholder placeholder
|
:placeholder placeholder
|
||||||
:value (d/nilv value "")
|
:value value
|
||||||
:variant "comfortable"
|
:variant "comfortable"
|
||||||
:hint-type (when error "error")
|
:hint-type (when error "error")
|
||||||
:slot-start swatch
|
:slot-start swatch
|
||||||
|
|
|
@ -560,7 +560,7 @@
|
||||||
[:> input-tokens-value*
|
[:> input-tokens-value*
|
||||||
{:placeholder (tr "workspace.token.token-value-enter")
|
{:placeholder (tr "workspace.token.token-value-enter")
|
||||||
:label (tr "workspace.token.token-value")
|
:label (tr "workspace.token.token-value")
|
||||||
:value (mf/ref-val value-ref)
|
:default-value (mf/ref-val value-ref)
|
||||||
:ref value-input-ref
|
:ref value-input-ref
|
||||||
:color color
|
:color color
|
||||||
:on-change on-update-value
|
:on-change on-update-value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue