forked from p96170835/amis
还原,不能这样改
This commit is contained in:
parent
69e305ff9a
commit
bba949bba8
|
@ -269,7 +269,8 @@ export default class FormControl extends React.PureComponent<
|
||||||
if (
|
if (
|
||||||
form !== store &&
|
form !== store &&
|
||||||
data !== prevProps.data &&
|
data !== prevProps.data &&
|
||||||
(value = getVariable(data as any, name)) !== this.getValue()
|
(value = getVariable(data as any, name)) !==
|
||||||
|
getVariable(prevProps.data, name)
|
||||||
) {
|
) {
|
||||||
this.handleChange(value, false, true);
|
this.handleChange(value, false, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue