fix(deps): update dependency react-select to v4 (#5417)
This commit is contained in:
@ -31,6 +31,6 @@
|
||||
"react-immutable-proptypes": "^2.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-select": "^3.0.0"
|
||||
"react-select": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ export default class SelectControl extends React.Component {
|
||||
handleChange = selectedOption => {
|
||||
const { onChange, field } = this.props;
|
||||
const isMultiple = field.get('multiple', false);
|
||||
const isEmpty = selectedOption === null;
|
||||
const isEmpty = isMultiple ? !selectedOption?.length : !selectedOption;
|
||||
|
||||
if (field.get('required') && isEmpty && isMultiple) {
|
||||
onChange(List());
|
||||
|
Reference in New Issue
Block a user