Skip to content

Commit

Permalink
[TextField] Fix typo in FromControl warning (#18129)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanvan229 authored and oliviertassinari committed Nov 1, 2019
1 parent b3f8731 commit 94a6ff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui/src/FormControl/FormControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const FormControl = React.forwardRef(function FormControl(props, ref) {
if (registeredInput.current) {
console.error(
[
'Material-UI: there are multiple InputBase components inside a FromControl.',
'Material-UI: there are multiple InputBase components inside a FormControl.',
'This is not supported. It might cause infinite rendering loops.',
'Only use one InputBase.',
].join('\n'),
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/InputBase/InputBase.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ describe('<InputBase />', () => {

expect(consoleErrorMock.callCount()).to.eq(1);
expect(consoleErrorMock.args()[0][0]).to.include(
'Material-UI: there are multiple InputBase components inside a FromControl.',
'Material-UI: there are multiple InputBase components inside a FormControl.',
);
});

Expand Down

0 comments on commit 94a6ff1

Please sign in to comment.