mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +08:00
修复 formItem 有默认值时无法删除的问题 (#1577)
This commit is contained in:
parent
63d013e20b
commit
0e420dfa47
@ -507,7 +507,7 @@ export default class FormControl extends React.PureComponent<ControlProps> {
|
||||
|
||||
getValue() {
|
||||
const {formStore: form, control} = this.props;
|
||||
let value: any = this.model?.tmpValue ?? control.value;
|
||||
let value: any = this.model ? this.model.tmpValue : control.value;
|
||||
|
||||
if (control.pipeIn) {
|
||||
value = control.pipeIn(value, form.data);
|
||||
|
Loading…
Reference in New Issue
Block a user