Skip to content
Snippets Groups Projects
Commit 46736d13 authored by M3034's avatar M3034
Browse files

Merge branch 'task-char-limits' into 'development'

task char limits

See merge request !37
parents 9758ec85 9f766b72
No related branches found
No related tags found
2 merge requests!46Development to testing,!37task char limits
......@@ -6,8 +6,8 @@ class TaskList extends React.Component {
constructor(props) {
super(props);
this.state = {
taskNameInput: "", // >= 3
taskDescriptionInput: "", // no limits
taskNameInput: "", // 3-31 chars
taskDescriptionInput: "", // 0-255
tasks: [],
factionlist: [],
selectedFactionId: ""
......@@ -232,6 +232,7 @@ class TaskList extends React.Component {
type="text"
placeholder="Task name"
minLength="3"
maxLength="31"
value={this.state.taskNameInput}
onChange={e => this.setState({ taskNameInput: e.target.value })}
/>
......@@ -239,6 +240,7 @@ class TaskList extends React.Component {
id="taskDescriptionInput"
placeholder="Task description"
value={this.state.taskDescriptionInput}
maxLength="255"
onChange={e =>
this.setState({ taskDescriptionInput: e.target.value })
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment