mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
📝 fix site demo, dynamic form firstItem undefined
This commit is contained in:
parent
6560697c09
commit
89653d2e89
@ -40,7 +40,7 @@ class DynamicFieldSet extends React.Component {
|
||||
const { form } = this.props;
|
||||
// can use data-binding to get
|
||||
const keys = form.getFieldValue('keys');
|
||||
const nextKeys = keys.concat(++id);
|
||||
const nextKeys = keys.concat(id++);
|
||||
// can use data-binding to set
|
||||
// important! notify form to detect changes
|
||||
form.setFieldsValue({
|
||||
|
Loading…
Reference in New Issue
Block a user