tegel icon indicating copy to clipboard operation
tegel copied to clipboard

fix(table): auto-collapse expanded row upon clicking another expandable row

Open ckrook opened this issue 4 months ago • 3 comments

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.

  1. Go to Storybook
  2. Navigate to the table component
  3. Go to expandable rows
  4. Toggle the control autoCollapse to true
  5. 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

ckrook avatar Oct 10 '24 11:10 ckrook