Skip to content

Commit

Permalink
fix(TextField): prevent className clobbering on TextField input (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker authored Feb 7, 2024
1 parent 6817bbd commit 9bf6c09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/components/TextField/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default class TextField extends React.Component<
requiredText,
multiline,
'aria-describedby': ariaDescribedby,
className,
...other
} = this.props;
// typescript can't infer the type so it's complaining about
Expand Down Expand Up @@ -99,7 +100,7 @@ export default class TextField extends React.Component<
)}
</label>
<Field
className={classNames({
className={classNames(className, {
'Field__text-input': !multiline,
Field__textarea: multiline,
'Field--has-error': error
Expand Down

0 comments on commit 9bf6c09

Please sign in to comment.