From 8fd96ad5bdab72978b6a8dab6e15738e2cb020be Mon Sep 17 00:00:00 2001 From: Bram Vanhoutte Date: Sat, 23 May 2020 16:16:50 +0200 Subject: [PATCH] fix(input): incorrect classname passing --- src/components/Input/Input.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx index 02aabfe2..c5d28be8 100644 --- a/src/components/Input/Input.tsx +++ b/src/components/Input/Input.tsx @@ -36,10 +36,14 @@ const Input = React.forwardRef( }: 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 (