Skip to content

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

@arjavdongaonkar

Description

@arjavdongaonkar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions