mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
formitem 没销毁导致验证失败
This commit is contained in:
parent
d042fa8624
commit
9ea7f87b13
@ -328,7 +328,7 @@ export function wrapControl<
|
||||
}
|
||||
|
||||
disposeModel() {
|
||||
const {formStore: form, formItem} = this.props;
|
||||
const {formStore: form, formItem, rootStore} = this.props;
|
||||
|
||||
if (
|
||||
this.model &&
|
||||
@ -340,10 +340,13 @@ export function wrapControl<
|
||||
combo.unBindUniuqueItem(this.model);
|
||||
}
|
||||
|
||||
this.model &&
|
||||
if (this.model) {
|
||||
formItem &&
|
||||
isAlive(formItem) &&
|
||||
formItem.removeSubFormItem(this.model);
|
||||
isAlive(formItem) &&
|
||||
formItem.removeSubFormItem(this.model);
|
||||
|
||||
rootStore.removeStore(this.model);
|
||||
}
|
||||
}
|
||||
|
||||
controlRef(control: any) {
|
||||
|
Loading…
Reference in New Issue
Block a user