fluentui-blazor icon indicating copy to clipboard operation
fluentui-blazor copied to clipboard

feat: add option to not unselect item to FluentTreeView

Open JamesNK opened this issue 9 months ago • 3 comments

🙋 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

JamesNK avatar Apr 01 '25 02:04 JamesNK

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.

dvoituron avatar Apr 01 '25 09:04 dvoituron

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

vnbaaij avatar Apr 02 '25 09:04 vnbaaij

Issue created: https://github.com/microsoft/fluentui/issues/34259

vnbaaij avatar Apr 15 '25 08:04 vnbaaij