Skip to content

Commit

Permalink
fix: showing notch with no label
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jan 20, 2020
1 parent d1c88b5 commit 3aa7f32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/material-ui/src/TextField/TextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ const TextField = React.forwardRef(function TextField(props, ref) {
InputMore.notched = InputLabelProps.shrink;
}

InputMore.label = (
InputMore.label = label ? (
<React.Fragment>
{label}
{required && '\u00a0*'}
</React.Fragment>
) : (
label
);
}
if (select) {
Expand Down

0 comments on commit 3aa7f32

Please sign in to comment.