ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[table]: TableSelection select all checkbox value is wrongly set when filtering data

Open rvsia opened this issue 1 year ago • 7 comments

Bug Description

When filtering data in table and using select all checkbox to select all data, it's value status (checked/unchecked) gets unsynchronized with the data and it leads to un-expected behavior

Affected Component

ui5 table

Expected Behaviour

Select all checkbox is checked only if all data in the table are selected

Ideally it would great if the table selection would be controlled so we can manually set its value

Isolated Example

n/a

Steps to Reproduce

  1. Filter data in table
  2. Select all
  3. Un-filter data
  4. Select all checkbox is still checked

Log Output, Stack Trace or Screenshots

Image

Priority

Medium

UI5 Web Components Version

Latest

Browser

Chrome

Operating System

MacOS

Additional Context

No response

Organization

SAP Signavio

Declaration

  • [x] I’m not disclosing any internal or sensitive information.

rvsia avatar Jan 24 '25 10:01 rvsia

Hey @rvsia,

Can you please provide an isolated example replicating the issue? You can edit one of our existing samples, or create one on https://stackblitz.com/.

Thank you, Diana

didip1000 avatar Jan 24 '25 12:01 didip1000

@didip1000 Can I provide a React example?

rvsia avatar Jan 24 '25 13:01 rvsia

Hey @rvsia,

If you can provide an example without react that would be preferable because we need to make sure the issue is with the components themselves not the react wrapper.

Thanks, Diana

didip1000 avatar Jan 24 '25 14:01 didip1000

Hi,

The behavior of the table seems to require clarification before confirming it as a bug.

What should happen if the "Select All" checkbox is clicked, and new items are added to the table? As I see it, the app currently has no way to understand that the checkbox was previously clicked in order to update its state accordingly.

@aborjinik what’s your opinion? Should we provide an event developers, allowing developers to align their model with the current component state? Or should we automatically uncheck the "Select All" checkbox when a new, unselected row is added to the table?

nnaydenow avatar Jan 28 '25 14:01 nnaydenow

Hi Team,

We are also facing the same issue in our SF project while filtering the table with multi select option This is a high priority issue for us as our monthly release is impacted by this

Thanks, Ankita

Ankitadoshi avatar Feb 05 '25 12:02 Ankitadoshi

:tada: This issue has been resolved in version v2.8.0-rc.1 :tada:

The release is available on v2.8.0-rc.1

Your semantic-release bot :package::rocket:

ui5-webcomponents-bot avatar Feb 13 '25 08:02 ui5-webcomponents-bot

Hi @aborjinik, We see that the issue is resolved in version 2.8.0-rc-1. We are currently using version 2.7.1 and the release timelines prevent us from doing further upgrades. Would it be possible to backport this fix to v2.7.1?

Thanks, Ankita

Ankitadoshi avatar Feb 20 '25 04:02 Ankitadoshi