imbric-theme 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ import styles from './DynamicSelect.module.css'
|
|
5
5
|
import withStyles from '../../hocs/withStyles'
|
6
6
|
|
7
7
|
|
8
|
-
export const DynamicSelect = ({ getStyles, optionsSelect, defaultValue, placeholder, isMulti, isClearable, isDisabled, isLoading, isRtl, isSearchable, isInline, onChange, onFocus, onBlur, closeMenuOnSelect }) => {
|
8
|
+
export const DynamicSelect = ({ getStyles, optionsSelect, value, defaultValue, placeholder, isMulti, isClearable, isDisabled, isLoading, isRtl, isSearchable, isInline, onChange, onFocus, onBlur, closeMenuOnSelect }) => {
|
9
9
|
|
10
10
|
|
11
11
|
const customStyles = {
|
@@ -74,6 +74,7 @@ export const DynamicSelect = ({ getStyles, optionsSelect, defaultValue, placehol
|
|
74
74
|
styles={customStyles}
|
75
75
|
options={optionsSelect}
|
76
76
|
defaultValue={defaultValue}
|
77
|
+
value={value}
|
77
78
|
isMulti={isMulti}
|
78
79
|
isClearable={isClearable}
|
79
80
|
isDisabled={isDisabled}
|
@@ -93,6 +94,7 @@ export const DynamicSelect = ({ getStyles, optionsSelect, defaultValue, placehol
|
|
93
94
|
DynamicSelect.propTypes = {
|
94
95
|
getStyles: PropTypes.func.isRequired,
|
95
96
|
defaultValue: PropTypes.any,
|
97
|
+
value: PropTypes.any,
|
96
98
|
placeholder: PropTypes.string,
|
97
99
|
isMulti: PropTypes.bool,
|
98
100
|
isClearable: PropTypes.bool,
|