Skip to content

Commit

Permalink
chore: pass readOnly prop to input element (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
giubatt authored Jan 3, 2022
1 parent 907b049 commit 1b0712a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ const Input = forwardRef<HTMLInputElement | HTMLTextAreaElement, InputProps>(
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={{
Expand Down

1 comment on commit 1b0712a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for herzui ready!

✅ Preview
https://herzui-1vdohuydw-micromed.vercel.app

Built with commit 1b0712a.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.