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 hasn't take effec

chengcan0717 opened this issue · comments

commented

In examples-v4,the case Dynamic Fields:
https://codesandbox.io/s/fervent-ride-55we5?file=/src/App.js
When change initialValue to 'Other',the other formItem isn't appears.

For first rendering, you need to check condition by initialValue rather than form.getFieldValue

form.getFieldValue('your form key') || meta.fields[0].initialValue