Skip to content
Snippets Groups Projects

task char limits

Merged H9031 requested to merge task-char-limits into development
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -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 })
}
}
Loading