Role selection going wrong with filtering during role assignment to user group/user

While testing admin console in version 25.0.5 & now in 25.0.6, we have identified a selection issue in role which causing misconfigurations in role-assignment.

Keycloak_role_select_issue

Eg:

  1. Open Group Details > Role Mapping > Assign Role
  2. Select “Filter by realm role”
  3. There are 200 roles t_role1 to t_role200
  4. When searching107 in filter, it is listing t_role101, t_role107 and t_role171
  5. Select role t_role101
  6. #ISSUE: Clear filter, now showing default first role default-roles-test as selected
  7. When searching again107 in filter, it is listing t_role101 as selected
  8. Select t_role171 also
  9. . #ISSUE: Clear filter, now showing 1st and 3rd from the default listing as selected

If somebody faced this issue, please advice if there is any workaround to make this stable.

Thanks in advance