🐛 Fix disabled numeric input with token applied is broken (#11324)

This commit is contained in:
Luis de Dios 2026-08-31 11:51:42 +02:00 committed by GitHub
parent 169e6fcbca
commit 2ed0981e8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -839,7 +839,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;