Skip to content

[TreeView] disableSelection does not disable all selections  #20099

@tonyhallett

Description

@tonyhallett
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

  1. Only click is disabled
  2. Single select tree item when not selected will have aria-selected=false

Expected Behavior 🤔

  1. Expect all selection to be disabled.
  2. If the tree does not support multiple selection, aria-selected is set to true for the selected node and it is not present on any other node in the tree.

Steps to Reproduce 🕹

https://codesandbox.io/s/silly-knuth-yidwl

Steps:

  1. Focus Apples
  2. Press space - Apples is selected
  1. Click the button

Context 🔦

Trying to disable selection.
Expecting aria authoring practices

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: tree viewChanges related to the tree view. This includes TreeView, TreeItem.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions