mirror of
https://github.com/franjsco/tick3t
synced 2025-06-05 22:19:18 +02:00
fix DropDown
This commit is contained in:
@@ -20,8 +20,8 @@ class DropDown extends Component {
|
|||||||
<Input
|
<Input
|
||||||
name = "type"
|
name = "type"
|
||||||
type = "select"
|
type = "select"
|
||||||
value = { this.props.type }
|
value = { this.props.value }
|
||||||
onChange = { this.props.handleInputChange }
|
onChange = { this.props.onChange }
|
||||||
>
|
>
|
||||||
<option value="">---</option>
|
<option value="">---</option>
|
||||||
{ options }
|
{ options }
|
||||||
|
@@ -25,8 +25,7 @@ class OpenTicket extends Component {
|
|||||||
type: '',
|
type: '',
|
||||||
subject: '',
|
subject: '',
|
||||||
message: '',
|
message: '',
|
||||||
categories: [],
|
categories: []
|
||||||
categoriesLoaded: false
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.handleInputChange = this.handleInputChange.bind(this);
|
this.handleInputChange = this.handleInputChange.bind(this);
|
||||||
@@ -188,7 +187,11 @@ class OpenTicket extends Component {
|
|||||||
Type
|
Type
|
||||||
</Label>
|
</Label>
|
||||||
|
|
||||||
<DropDown options={this.state.categories} />
|
<DropDown
|
||||||
|
options={this.state.categories}
|
||||||
|
value={this.state.type}
|
||||||
|
onChange={this.handleInputChange}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
Reference in New Issue
Block a user