Restrict Perspective Tree to single selection only

I want to do basically the opposite of the OP in this post - only allow one Tree item to be selected at a time. It doesn't seem there is a built-in way to do this - what I tried to do was to convert the selection property from an array to a string, but I got errors on the Tree component. Is there a native way to do this, and if not, what is the hacky way to do this?

The use case I'm using the Tree for absolutely requires single-selection only.

*Unrelated: The Tree component's selectionData functionality is incomplete, in my opinion. If the Tree's selection property changes from '' to 0/0, for example, selectionData updates, but if it goes from 0/0 to '', then selectionData keeps the previous value that was in there. So, every time I use a Tree, I need to add a change script on selection ... why?

Yeah, I think you're right. I haven't messed with a tree view in a while but it doesn't appear to have a way to disable that functionality.

The treeview is a little awkward to work with no doubt. I only use it if I need to :slight_smile:

Its the only / best in-built way to display Tree data structures, but there are some things about it that make me want to pull my hair out (and I'm bald).

EDIT: @bmusson has a new charting module with a tree type that I want to test and potentially replace some of my use cases with a better component, one that is better / faster supported. It seems like some of the Perspective components that get shipped with 8.1 are never project-tested, meaning they can work with the properties they ship with, but if they're used in a real project, there are severe limitations. I am in the process of compiling a list, but it seems like any time I bring up nice-to-haves / "simple" feature requests, those get superseded by the 8.3 releases, so I don't really bother at this point.

Yeah, I think the community can fill in the gaps left by the initial systems. I love the open platform design. It really opens doors.

Yeah, everything right now is on the back burner until 8.3 is released. I've noticed some things getting updates in the release notes, and I'm guessing a lot of this is backported from 8.3, but once 8.3.0 is out, I have a feeling we'll see even 8.1 get some backports of some fixes, etc while any new "bugs" in 8.3 are worked out.