diff --git a/src/components/FormItem/index.jsx b/src/components/FormItem/index.jsx index 56c48f77..4cc7eaf2 100644 --- a/src/components/FormItem/index.jsx +++ b/src/components/FormItem/index.jsx @@ -158,6 +158,7 @@ export default class FormItem extends React.Component { checkOptions, checkBoxInfo, allowClear, + required, ...rest } = this.props; return { @@ -172,7 +173,7 @@ export default class FormItem extends React.Component { optionFilterProp, checkOptions, checkBoxInfo, - allowClear, + allowClear: required ? allowClear || false : allowClear, ...rest, }; }