Skip to content

Commit

Permalink
fix(input): incorrect classname passing
Browse files Browse the repository at this point in the history
  • Loading branch information
bramvanhoutte committed May 23, 2020
1 parent 3fc4073 commit 8fd96ad
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ const Input = React.forwardRef<HTMLInputElement, Props>(
}: Props,
ref,
) => {
const inputClassNames = classNames(cssReset.ventura, styles.input, {
[styles.containsError]: Boolean(isInvalid),
const inputClassNames = classNames(
cssReset.ventura,
styles.input,
{
[styles.containsError]: Boolean(isInvalid),
},
className,
});
);

return (
<input
Expand Down

0 comments on commit 8fd96ad

Please sign in to comment.