feat: add option to not unselect item to FluentTreeView
🙋 Feature Request
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.
I'd like an option to not unselect a selected tree view item. This is the behavior that the tree in Windows File Explorer has.
🤔 Expected Behavior
Configuring an option means that clicking on a selected tree view item doesn't do anything.
😯 Current Behavior
Clicking on a selected tree view item unselects it.
💁 Possible Solution
🔦 Context
💻 Examples
Unfortunately, I don't think this is possible with the current version of Web Components. I will retain the request for the next version of Lib, which will use the new version of web components.
Going with the docs and example that we have now for v5, I'd say this is not going to be possible on that version either...
https://web-components.fluentui.dev/?path=/docs/components-tree--docs
Issue created: https://github.com/microsoft/fluentui/issues/34259