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