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 { ...@@ -6,8 +6,8 @@ class TaskList extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
taskNameInput: "", // >= 3 taskNameInput: "", // 3-31 chars
taskDescriptionInput: "", // no limits taskDescriptionInput: "", // 0-255
tasks: [], tasks: [],
factionlist: [], factionlist: [],
selectedFactionId: "" selectedFactionId: ""
...@@ -232,6 +232,7 @@ class TaskList extends React.Component { ...@@ -232,6 +232,7 @@ class TaskList extends React.Component {
type="text" type="text"
placeholder="Task name" placeholder="Task name"
minLength="3" minLength="3"
maxLength="31"
value={this.state.taskNameInput} value={this.state.taskNameInput}
onChange={e => this.setState({ taskNameInput: e.target.value })} onChange={e => this.setState({ taskNameInput: e.target.value })}
/> />
...@@ -239,6 +240,7 @@ class TaskList extends React.Component { ...@@ -239,6 +240,7 @@ class TaskList extends React.Component {
id="taskDescriptionInput" id="taskDescriptionInput"
placeholder="Task description" placeholder="Task description"
value={this.state.taskDescriptionInput} value={this.state.taskDescriptionInput}
maxLength="255"
onChange={e => onChange={e =>
this.setState({ taskDescriptionInput: e.target.value }) 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