mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
修复 control 引用过期导致 mst 报错的问题
This commit is contained in:
parent
8354c2d9aa
commit
71f662d8aa
@ -465,7 +465,7 @@ export default class FormControl extends React.Component<FormControlProps, any>
|
||||
|
||||
return render('', control, {
|
||||
...rest,
|
||||
key: control.type, // 很重要:如果不写实际的 control 组件变了,但是 this.control 还是引用的原来那个。
|
||||
key: `${control.name}-${control.type}`, // 很重要:如果不写实际的 control 组件变了,但是 this.control 还是引用的原来那个。
|
||||
defaultSize: controlWidth,
|
||||
disabled: disabled || control.disabled,
|
||||
formItem: model,
|
||||
|
Loading…
Reference in New Issue
Block a user