Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Input): Only insert Label if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn committed Sep 11, 2018
1 parent 598dee2 commit 207e57b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ export default class Input extends React.Component {
isFloating,
};

const Label = (
const Label = label ? (
<StyledLabel htmlFor={id} styles={rest.styles} size={size} isFloatable={floating} isFloating={isFloating}>
{label}
</StyledLabel>
);
) : null;

return (
<Field styles={rest.styles}>
Expand Down

0 comments on commit 207e57b

Please sign in to comment.