| @@ -1,7 +1,6 @@ | ||
| 1 | 1 | import React, { Component } from 'react'; |
| 2 | 2 | import Select from 'react-select'; |
| 3 | -import CreatableSelect from 'react-select/creatable'; | |
| 4 | 3 | |
| 5 | 4 | export default class FieldDropdown extends Component { |
| 6 | 5 | shouldComponentUpdate(nextProps) { |
| 7 | 6 | return JSON.stringify(this.props.options) !== JSON.stringify(nextProps.options) || this.props.value !== nextProps.value || this.props.isDisabled !== nextProps.isDisabled; |
| @@ -29,12 +28,11 @@ | ||
| 29 | 28 | } |
| 30 | 29 | } |
| 31 | 30 | |
| 32 | 31 | const customProps = this.props.custom ? this.props.custom : {}; |
| 33 | - const SelectElem = this.props.creatable ? CreatableSelect : Select; | |
| 34 | 32 | |
| 35 | 33 | return ( |
| 36 | - <SelectElem | |
| 34 | + <Select | |
| 37 | 35 | isMulti={ isMulti } |
| 38 | 36 | isDisabled={ this.props.isDisabled } |
| 39 | 37 | options={this.props.options} |
| 40 | 38 | value={selectedOption} |