tegel
tegel copied to clipboard
fix(table): auto-collapse expanded row upon clicking another expandable row
Describe pull-request
This pull-request adds the possibility for the developer to enable "auto collapse". This means that if its enabled, all other rows except for the row selected will be closed.
Issue Linking:
Choose one of the following options
How to test
Provide detailed steps for testing, including any necessary setup.
- Go to Storybook
- Navigate to the table component
- Go to expandable rows
- Toggle the control autoCollapse to true
- Test open multiple rows now, the expected behavior is that all other rows expect the selected row should close
Checklist before submission
- [x] I have added unit tests for my changes (if applicable)
- [x] All existing tests pass
- [x] I have updated the documentation (if applicable)
Suggested test steps
- [x] Browser testing (Chrome, Safari, Firefox)
- [x] Keyboard operability
- [x] Storybook controls