# How to disable the multiple selection in Perspective Tree component?

**URL:** <https://forum.inductiveautomation.com/t/how-to-disable-the-multiple-selection-in-perspective-tree-component/83569>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [December 28, 2023, 10:39am UTC](https://forum.inductiveautomation.com/t/how-to-disable-the-multiple-selection-in-perspective-tree-component/83569 "2023-12-28T10:39:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 28, 2023, 10:55am UTC](https://forum.inductiveautomation.com/t/how-to-disable-the-multiple-selection-in-perspective-tree-component/83569/2 "2023-12-28T10:55:43Z")

</div>

There doesn't seem to be an option.

It looks as though the last item clicked is at the bottom of the list so you could add a script to the onItemClicked event to delete all the `props.selection` and `props.selectionData` entries except for the last. (You would need to handle deselecting all items too.)

See if there are any clues in [Tree in perspective, multiselect label](https://forum.inductiveautomation.com/t/tree-in-perspective-multiselect-label/56661).

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-disable-the-multiple-selection-in-perspective-tree-component/83569)._
