rekit / antd-form-builder

Dynamic meta driven React forms based on antd.

Home Page:https://rekit.github.io/antd-form-builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic Fields not working after using Form.useForm()

rizshivalli opened this issue · comments

Dynamic Fields not working after using Form.useForm()
In examples-v4,the case Dynamic Fields:

https://codesandbox.io/s/jolly-easley-9iksb?file=/src/App.js

earlier when it was FOrmBuilder.useForm() it was working fine but now since it has changed to Form.useForm() the dynamic fields has stopped working.

please take a look.

I Have found the solution in the example given at https://rekit.github.io/antd-form-builder/examples-v4/#dynamic-fields

const forceUpdate = FormBuilder.useForceUpdate(); and

<Form
      form={form}
      onValuesChange={forceUpdate}   ></From>