Merge "fix: allowClear property is set to false when select is required"
This commit is contained in:
@@ -158,6 +158,7 @@ export default class FormItem extends React.Component {
|
|||||||
checkOptions,
|
checkOptions,
|
||||||
checkBoxInfo,
|
checkBoxInfo,
|
||||||
allowClear,
|
allowClear,
|
||||||
|
required,
|
||||||
...rest
|
...rest
|
||||||
} = this.props;
|
} = this.props;
|
||||||
return {
|
return {
|
||||||
@@ -172,7 +173,7 @@ export default class FormItem extends React.Component {
|
|||||||
optionFilterProp,
|
optionFilterProp,
|
||||||
checkOptions,
|
checkOptions,
|
||||||
checkBoxInfo,
|
checkBoxInfo,
|
||||||
allowClear,
|
allowClear: required ? allowClear || false : allowClear,
|
||||||
...rest,
|
...rest,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user