Remove using label as placeholder

This commit is contained in:
Steve Klebanoff 2018-12-20 10:46:57 -08:00
parent bc3093e635
commit d20ed2247f

View File

@ -29,7 +29,7 @@ export const Input = React.forwardRef((props: InputProps, ref?: React.Ref<HTMLIn
return (
<InputWrapper {...props}>
<Label htmlFor={id}>{label}</Label>
<StyledInput as={componentType} ref={ref} id={id} placeholder={label} isErrors={isErrors} {...props} />
<StyledInput as={componentType} ref={ref} id={id} isErrors={isErrors} {...props} />
{isErrors && <Error>{errorMessage}</Error>}
</InputWrapper>
);