🐛 Fix disabled numeric input with token applied is broken

This commit is contained in:
Luis de Dios 2026-08-24 08:43:52 +02:00
parent 47d599fe34
commit 7c601fd3ee
2 changed files with 4 additions and 2 deletions

View File

@ -840,7 +840,8 @@
(mf/with-effect [handle-unmount] handle-unmount)
[:div {:class [class (stl/css-case :input-wrapper true
:resizable (not is-token-applied?))]
:resizable (and (not is-token-applied?)
(not disabled)))]
:ref wrapper-ref
:on-pointer-down on-scrub-pointer-down
:on-pointer-move on-scrub-pointer-move

View File

@ -22,9 +22,10 @@
column-gap: var(--sp-xs);
align-items: center;
inline-size: 100%;
block-size: var(--token-field-height);
background: var(--token-field-bg-color);
border-radius: $br-8;
padding-inline-end: var(--sp-xs);
padding: 0 var(--input-padding-size, var(--sp-s));
outline: $b-1 solid var(--token-field-outline-color);
position: relative;