fix: variable binding lost after modify the mock value

This commit is contained in:
LeoYuan 袁力皓 2022-03-11 11:25:38 +08:00
parent 70fd3720d0
commit ef95b56832

View File

@ -187,7 +187,7 @@ class SettingFieldView extends Component<SettingFieldViewProps, SettingFieldView
// eslint-disable-next-line react/no-unused-state
value,
});
field.setValue(value);
field.setValue(value, true);
if (_onChange) _onChange(value, field);
},
onInitial: () => {
@ -199,7 +199,7 @@ class SettingFieldView extends Component<SettingFieldViewProps, SettingFieldView
// eslint-disable-next-line react/no-unused-state
value,
});
field.setValue(value);
field.setValue(value, true);
},
removeProp: () => {