修复 validateOnChange 在 combo 中无效的问题

This commit is contained in:
liaoxuezhi 2019-07-11 16:45:31 +08:00 committed by catchonme
parent 92864f2f23
commit 84bb613924

View File

@ -275,7 +275,8 @@ export default class ComboControl extends React.Component<ComboProps> {
store,
joinValues,
delimiter,
disabled
disabled,
validateOnChange
} = this.props;
if (disabled) {
@ -291,7 +292,7 @@ export default class ComboControl extends React.Component<ComboProps> {
this.props.onChange(value);
if (formItem && formItem.validated) {
if (validateOnChange !== false && formItem && formItem.validated) {
this.subForms.forEach(item => item.validate());
}