(
) => {
const mergedContainerClassName = classNames(styles.container, className);
const mergedInputClassName = classNames(styles.input, {
- [styles.containsError]: Boolean(errorMessage),
+ [styles.containsError]: Boolean(isInvalid),
});
return (
@@ -50,8 +53,8 @@ const Input = React.forwardRef(
ref={ref}
className={mergedInputClassName}
data-testid={`input-${name}`}
+ onBlur={onBlur}
/>
- {Boolean(errorMessage) && {errorMessage}}
);
},