PluginProbe
WP Ultimate Post Grid / 3.0.0
WP Ultimate Post Grid v3.0.0
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | assets/js/admin-modal/field/FieldDropdown.js +1 -3 4.1.1 → 3.0.0 View file →
@@ -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}