From d9af66152cb395ecdac857e64078447650b006a9 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Mon, 24 Oct 2022 09:35:22 +0800 Subject: [PATCH] [ui][text input] fix input add on disappearing when width is too small --- packages/ui/src/TextInput/TextInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/TextInput/TextInput.tsx b/packages/ui/src/TextInput/TextInput.tsx index 4f67af6a..98b150f2 100644 --- a/packages/ui/src/TextInput/TextInput.tsx +++ b/packages/ui/src/TextInput/TextInput.tsx @@ -178,7 +178,7 @@ function TextInput( aria-describedby={hasError ? errorId : undefined} aria-invalid={hasError ? true : undefined} className={clsx( - 'flex-1 border-none text-sm focus:outline-none focus:ring-0', + 'w-0 flex-1 border-none text-sm focus:outline-none focus:ring-0', inputClass, disabled && 'bg-transparent', )}