-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] - Remove React.Fragment to prevent maximum update depth exceede…
…d error in IE11
- Loading branch information
1 parent
3764e63
commit 5ebf471
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
docs/src/pages/components/text-fields/BasicTextFieldsRow.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import TextField from '@material-ui/core/TextField'; | ||
|
||
const useStyles = makeStyles(theme => ({ | ||
root: { | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
width: 200, | ||
}, | ||
}, | ||
})); | ||
|
||
export default function BasicTextFieldsRow() { | ||
const classes = useStyles(); | ||
const [message, setMessage] = React.useState(''); | ||
|
||
return ( | ||
<form className={classes.root} noValidate autoComplete="off"> | ||
<TextField | ||
fullWidth | ||
multiline | ||
rows={3} | ||
rowsMax={8} | ||
value={message} | ||
onChange={event => setMessage(event.target.value)} | ||
/> | ||
</form> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters