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

Tree: In Multiselect mode, all tree nodes are not showing checkbox

Open Ankitadoshi opened this issue 3 years ago • 5 comments

Describe the bug In Tree Component, when we have mode as MultiSelect, checkboxes are not visible for all the child items. If the tree node is collapsed by default and we expand it, the child items do not have checkboxes. If the tree node is expanded by default we are able to see the checkboxes for child nodes.

Isolated Example https://sap.github.io/ui5-webcomponents-react/?path=/story/data-display-tree--default-story&args=mode:MultiSelect

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://sap.github.io/ui5-webcomponents-react/?path=/story/data-display-tree--default-story&args=mode:MultiSelect'
  2. Expand 'Tree 2' tree item
  3. Observe that the child items below it ('Tree 2.1', 'Tree 2.2') do not have checkboxes.
  4. Expand 'Tree 2.1' tree item
  5. Observe that the child items below it does not have checkbox('Tree 2.1.1', 'Tree 2.1.2')
  6. Observe that 'Tree 1' is expanded by default and all its child items have checkbox

Expected behavior In Tree, If mode is set to MultiSelect, all the tree nodes should have checkbox to select/unselect them.

Screenshots Screenshot 2023-01-11 at 3 01 23 PM

UI5 Web Components for React Information @ui5/webcomponents version: 1.9.3 @ui5/webcomponents-react version: 1.7.1 Operating System: macOS Ventura Version 13.1 Browser: Chrome

Additional context Add any other context about the problem here.

Ankitadoshi avatar Jan 11 '23 09:01 Ankitadoshi

Hi @Ankitadoshi

Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.


Hi colleagues, I this issue is also occurring when used with plain ui5-webcomponents and was probably introduced with v1.9.2 or v1.9.3.

codeSandbox

Also it seems like that your playground is outdated, as it doesn't happen there.

Lukas742 avatar Jan 11 '23 09:01 Lukas742

Hi @SAP/ui5-webcomponents-topic-p,

This is an issue with ui5-tree reproducible with the latest version. It appears related to some recent refactoring of the structure: See the initial description for details. In debugging we see that the "mode" of the tree is not propagated to all tree-items: it is propagated only to those that are expanded (i.e. those that are rendered as underlying list-items)

kineticjs avatar Jan 13 '23 08:01 kineticjs

Hi @dobrinyonkov ,

Can you let us know in which version this will be available?

Ankitadoshi avatar Jan 18 '23 04:01 Ankitadoshi

Hi @dobrinyonkov , Please let us know the version in which this fix will be available. Thanks, Ankita

Ankitadoshi avatar Jan 31 '23 05:01 Ankitadoshi

Hi @Ankitadoshi It's in 1.10

ilhan007 avatar Jan 31 '23 06:01 ilhan007