frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Bootstrap Table selections are lost in Team Permissions when changing page size in pagination

Open arjavdongaonkar opened this issue 4 months ago • 0 comments

Current Behavior

When using the permissions selection modal (or any table with checkboxes), the selected rows are cleared after changing the “rows per page” value in pagination.

The issue occurs because the table re-renders the data subset when the page size changes, and the checkbox selection state is not persisted across renders.

Steps to Reproduce

  1. Open Teams page in Access Management section under Adminstraction Tab.
  2. Open Permissions Modal
  3. Tick a few rows on the current page.
  4. Change the “Rows per page” value in the pagination dropdown.
  5. Observe that the previously selected checkboxes are lost.

Expected Behavior

Changing the number of rows per page should not clear existing selections. All previously selected rows (based on their unique ID) should remain checked after pagination or page-size changes, providing a consistent and intuitive user experience.

Dependency-Track Frontend Version

4.7.x

Browser

Google Chrome

Browser Version

No response

Operating System

macOS

Checklist

arjavdongaonkar avatar Oct 07 '25 03:10 arjavdongaonkar