mirror of
https://github.com/franjsco/tick3t
synced 2024-12-28 18:29:56 +01:00
fix DropDown
This commit is contained in:
parent
3940a4818c
commit
6973288d32
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user