question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A cascader with loadData in form cannot show complete initialValue .only first level.

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.6.4

Environment

Reproduction link

http://www.google.com

Steps to reproduce

              {getFieldDecorator("position", {
                rules: [{ required: true, message: "位置不能为空!" }]
                 initialValue: [
                  detailInfo ? detailInfo.building.buildingId : "",
                 detailInfo ? detailInfo.floor.ordinal : ""
                 ]
              })(
                <Cascader
                  options={buildingOptions}
                  onChange={onChange}
                  style={{ width: "95%" }}
                  placeholder="请选择"
                  loadData={this.onLoadData}
                />
              )}
            </FormItem>

What is expected?

can show initialValue normal

What is actually happening?

only first level data

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
freeznetcommented, Dec 4, 2018

here is an online reproduction https://codesandbox.io/s/91v45j068r

@afc163 reopen plz

0reactions
jiaoyiluncommented, Mar 9, 2019

+1 Having the exact same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting initialValue on Form.Item wrapping a Cascader throws ...
So when you set the initial value as a string, label is a string and you cannot call .join() function on a string....
Read more >
Cascader - Ant Design
Cascade selection box. ... Chooses cascade items in one float layer for better user experience. ... Note: loadData cannot work with showSearch ....
Read more >
Beginning Django_ Web Application Development and ...
Read the latest magazines about Beginning Django_ Web Application Development and Deployment with Python ( PDFDrive ) and discover magazines ...
Read more >
C# Interview Q - A Boo | PDF - Scribd
Now lets look at the client which will consume this DLL. I have just added windows form and a button to the same....
Read more >
.NET Interview questions - PDFCOFFEE.COM
reading through the whole book just look at what questions you feel uncomfortable and ... Can you show a simple code showing file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found