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