Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Wang committed Nov 4, 2019
1 parent e659320 commit 819a461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/FormLabel/FormLabel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class FormLabel extends React.PureComponent {
{this.errorMessage()}
</Fragment>
);
} else if (this.props.component === 'legend') {
} else if (this.props.component === 'label') {
return (
<label className={classes} htmlFor={fieldId} id={id}>
<span className={labelTextClasses}>{children}</span>
Expand Down

0 comments on commit 819a461

Please sign in to comment.