Browse Source

📝 fix site demo, dynamic form firstItem undefined

pull/14615/head
ycjcl868 6 years ago
parent
commit
89653d2e89
  1. 2
      components/form/demo/dynamic-form-item.md

2
components/form/demo/dynamic-form-item.md

@ -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…
Cancel
Save