# Menu Tree, Horizontal Menu : detect a target has been selected / Detect a dock is open

**URL:** <https://forum.inductiveautomation.com/t/menu-tree-horizontal-menu-detect-a-target-has-been-selected-detect-a-dock-is-open/53672>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 2, 2021, 2:38pm UTC](https://forum.inductiveautomation.com/t/menu-tree-horizontal-menu-detect-a-target-has-been-selected-detect-a-dock-is-open/53672 "2021-12-02T14:38:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [December 2, 2021, 2:38pm UTC](https://forum.inductiveautomation.com/t/menu-tree-horizontal-menu-detect-a-target-has-been-selected-detect-a-dock-is-open/53672/1 "2021-12-02T14:38:31Z")

</div>

When we use an Horizontal Menu or menu Tree, How can we detect a target has been selected ?

page.props.path can trigger some action if the targeted view has changed, but if the view was already opened we can’t be notified.

Is threre some way to know if a dock is visible or not ?
