Skip to content

Commit

Permalink
fix(text-input): Correct disabled text input
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Aug 2, 2024
1 parent 1c7c0e5 commit eddb4ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const TextInput = forwardRef<HTMLInputElement, TextInputProps>(
>
<input
id={inputId}
disabled={disabled}
className={inputClass}
onBlur={handleBlur}
onChange={handleChange}
Expand Down Expand Up @@ -249,6 +250,7 @@ export const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(
<textarea
id={inputId}
className={inputClass}
disabled={disabled}
onBlur={handleBlur}
onChange={handleChange}
ref={(node) => mergeRefs(node, [ref, inputRef])}
Expand Down

0 comments on commit eddb4ab

Please sign in to comment.