Skip to content

[AnalyticalTable]: Inconsistent selection behavior #8081

@Na1k

Description

@Na1k

Describe the bug

The selection of rows / subrows feels inconsistent. If the hook useIndeterminateRowSelection (Documentation) is used:

  • you are able to select all children
  • this DOES NOT select the parent row but visually it looks like the row is selected
  • if you then de-select a child and re-select it again
  • this time the parent row is actually selected - but it looks completely the same as in the second step

It should be visible that in some cases the parent row is selected or is not selected. It should never be possible that a user cannot deviate between selected and unselected.
From my point of view, there should not be a blueish background if the row is not selected. Just like it is the case if not all children are selected.
In that case, the checkbox displays the square and the row is not highlighted.

There is a similar issue for the default behavior.

If you select all children, the parent will be displayed as if it was selected. But only when you actively click on it, it will actually be selected.
For a user, that is irritating - "It appears that the row is selected, why doesn't it deselect the first time I click on it?"

Please find the attached stackblitz example and the video

Isolated Example

https://stackblitz.com/edit/github-66oe1xid?file=src%2FApp.tsx

Reproduction steps

Already described

Expected Behaviour

No response

Screenshots or Videos

Demo.mp4

UI5 Web Components for React Version

2.18.0

UI5 Web Components Version

2.18.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Relevant log output

Organization

No response

Declaration

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions