Skip to content

Commit

Permalink
[TextField] Update outlined label when prop changes (#17217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhamchinda authored and oliviertassinari committed Aug 29, 2019
1 parent 6400ddc commit cfd8194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui/src/TextField/TextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const TextField = React.forwardRef(function TextField(props, ref) {
const labelNode = ReactDOM.findDOMNode(labelRef.current);
setLabelWidth(labelNode != null ? labelNode.offsetWidth : 0);
}
}, [variant, required]);
}, [variant, required, label]);

warning(
!select || Boolean(children),
Expand Down

0 comments on commit cfd8194

Please sign in to comment.