From 1b0712a12d0155178c6c309ee131f859aa376670 Mon Sep 17 00:00:00 2001 From: Giuseppe Battistella Date: Mon, 3 Jan 2022 12:18:37 -0300 Subject: [PATCH] chore: pass readOnly prop to input element (#172) --- src/components/Input/Input.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index 254ca620..625a9f0d 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -227,6 +227,7 @@ const Input = forwardRef( onChange={onChange} onBlur={onBlur} aria-invalid={state === "error"} + readOnly={readOnly} size={1} // Input has a default size property of 20, which limits it's minimum width. Setting it to 1 and handling width through the parent so that we can control the input width better. {...htmlProps} sx={{