We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebca5e2 commit e100384Copy full SHA for e100384
packages/amis-core/src/store/form.ts
@@ -765,7 +765,8 @@ export const FormStore = ServiceStore.named('FormStore')
765
766
function reset(cb?: (data: any) => void, resetData: boolean = true) {
767
if (resetData) {
768
- self.data = self.pristine;
+ // 父级的数据可能已经被修改,__super不应该被修改
769
+ self.data = createObject(self.data.__super, self.pristine);
770
}
771
772
// 值可能变了,重新验证一次。
0 commit comments