Remove using label as placeholder
This commit is contained in:
parent
bc3093e635
commit
d20ed2247f
@ -29,7 +29,7 @@ export const Input = React.forwardRef((props: InputProps, ref?: React.Ref<HTMLIn
|
|||||||
return (
|
return (
|
||||||
<InputWrapper {...props}>
|
<InputWrapper {...props}>
|
||||||
<Label htmlFor={id}>{label}</Label>
|
<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>}
|
{isErrors && <Error>{errorMessage}</Error>}
|
||||||
</InputWrapper>
|
</InputWrapper>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user