-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(flat-table-row): add support for controlling expanded rows externally FE-4007 #3916
Conversation
b09b773
to
2402df1
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 721f975:
|
### Controlled | ||
|
||
<Preview> | ||
<Story name="controlled"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to ignore this story in chromatic
and add cypress
test for that purpose because the only one way to check if it works properly
0eb1a38
Scenario: You can expand all rows by clicking on Expand All | ||
Given I open "Design System Flat Table Expandable" component page "controlled" in no iframe | ||
And I click "Collapse All" button on preview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove extra space between And
and I
.
aa11df2
to
57522d2
Compare
…ally Adds `useEffect` to ensure `expandable` `FlatTableRows` update when the value of the `expanded` prop changes fix #3875
57522d2
to
721f975
Compare
🎉 This PR is included in version 68.25.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix #3875
Proposed behaviour
Adds
useEffect
to ensureexpandable
FlatTableRows
update when the value of theexpanded
propchanges
Current behaviour
expandable
functionality cannot be controlled externallyChecklist
d.ts
file added or updated if requiredAdditional context
Testing instructions
design-system-flat-table-expandable--controlled
addedhttps://codesandbox.io/s/nice-almeida-j22d6