Added proper form validation for description field.
This commit is contained in:
parent
c22bcae00d
commit
2a402407ae
|
@ -125,8 +125,8 @@ class ReportForm extends React.Component {
|
||||||
state = {
|
state = {
|
||||||
date: formatDate(new Date()),
|
date: formatDate(new Date()),
|
||||||
time: '00:00',
|
time: '00:00',
|
||||||
type: '',
|
type: 'visual',
|
||||||
confidence: ''
|
confidence: '1'
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -149,7 +149,7 @@ class ReportForm extends React.Component {
|
||||||
* The actual form.
|
* The actual form.
|
||||||
*/
|
*/
|
||||||
return (
|
return (
|
||||||
<form className={classes.container} noValidate autoComplete="off" method='GET'>
|
<form className={classes.container} autoComplete="off" method='GET'>
|
||||||
<Grid container spacing={8}>
|
<Grid container spacing={8}>
|
||||||
<Grid item xs={5} xl={2}>
|
<Grid item xs={5} xl={2}>
|
||||||
<TextField
|
<TextField
|
||||||
|
|
Loading…
Reference in New Issue