-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[Bug]: Tree - there is no option to keep an item selected OR expanded and selected at the same time #35950
Description
Component
Other...
Package version
3.0.0-RC.10
@microsoft/fast-element version
2.10.x
Environment
Not applicableCurrent Behavior
You can click on an unselected a fluent tree view item to select it. And you can click on a selected fluent tree view item to unselected it. The option to not unselect a selected tree view item is missing. This is the behavior that the tree in Windows File Explorer has.
There is also no way to have an item selected and expanded at the same time.
Configuring an option means that clicking on a selected tree view item doesn't do anything.
See also microsoft/fluentui-blazor#3601
Expected Behavior
It should be possible for a parent tree item to be both selected AND expanded.
Reproduction
https://web-components.fluentui.dev/?path=/docs/components-tree--docs
Steps to reproduce
Click on 'Item 2-1-2' while having the Dev Tools open and watching the element. You can see each click toggles the selected state.
Click on 'Item 1' while having the Dev Tools open and watching the element. You can see it can only be either selected or expanded but not both.
Are you reporting an Accessibility issue?
None
Suggested severity
High - No workaround
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status