mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
修复 validateOnChange 在 combo 中无效的问题
This commit is contained in:
parent
92864f2f23
commit
84bb613924
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user