Table defaultExpandAllRows doesn't always expand all rows

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  • Create a table
  • set childrenColumnName to something other than the default value
  • set expandable={{ defaultExpandAllRows: true }}

What is expected?

All rows are expanded, like when using children as the childrenColumnName

What is actually happening?

Only the first level of rows is expanded

Environment Info
antd 4.0.0
React 16.12.0
System Mac
Browser Chrome

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
fw-amgaacommented, Sep 2, 2021

not working even after fix. I did <Table childrenColumnName=“children” expandable={{ defaultExpandAllRows: true }} /> but all rows are not expanded at all.

1reaction
mdappercommented, Sep 10, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

defaultExpandAllRows antd table react with fetch not working
Your problem is because your dataJSON is empty in the first render, so antd doesn't recognize which rows should be expanded in the...
Read more >
Ant Design Expandable Table Row | Nested Table in ReactJS
reactjs #antd # table In this video tutorial I have explained how to use Ant Design Expandable Table Row to make Table Row...
Read more >
Components / CvDataTable - slotted expanding data ... - Vue
The data table component does not listen to slotted cell components. ... all rows' },; expandAllAriaLabel: { type: String, default: 'Expand all rows'...
Read more >
Pivot Table: Expand/collapse all rows using keyboard shortcut
You can use a combination of your keyboard and mouse to accomplish it. To expand, press Shift and scroll UP with the mouse...
Read more >
Table - Ant Design
A table displays rows of data. ... Use rowSelection.selections custom selections, default no select dropdown, show default selections via setting to true ....
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