mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: combo 唯一验证触发后,当删除其中一个时,唯一验证的报错没有消失 (#7388)
* fix: combo 唯一验证触发后,当删除其中一个时,唯一验证的报错没有消失 * fix: combo 唯一验证触发后,当删除其中一个时,唯一验证的报错没有消失
This commit is contained in:
parent
1bc2a5fb13
commit
06ad5abe50
@ -147,9 +147,15 @@ export const ComboStore = iRendererStore
|
|||||||
});
|
});
|
||||||
|
|
||||||
self.forms.forEach(form =>
|
self.forms.forEach(form =>
|
||||||
form.items.forEach(
|
form.items.forEach(item => {
|
||||||
item => item.unique && item.syncOptions(undefined, form.data)
|
if (item.unique) {
|
||||||
)
|
item.syncOptions(undefined, form.data);
|
||||||
|
|
||||||
|
if (item.errors.length) {
|
||||||
|
item.validate(item.tmpValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user