Merge "fix: allowClear property is set to false when select is required"

This commit is contained in:
Zuul
2022-08-25 15:46:22 +00:00
committed by Gerrit Code Review

View File

@@ -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,
}; };
} }