# Close dropdown when other dropdown is opened

**URL:** <https://forum.inductiveautomation.com/t/close-dropdown-when-other-dropdown-is-opened/92320>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [June 25, 2024, 9:12am UTC](https://forum.inductiveautomation.com/t/close-dropdown-when-other-dropdown-is-opened/92320 "2024-06-25T09:12:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [June 25, 2024, 9:12am UTC](https://forum.inductiveautomation.com/t/close-dropdown-when-other-dropdown-is-opened/92320/1 "2024-06-25T09:12:56Z")

</div>

I've got a table that holds multiple dropdowns. I would like to automatically close a dropdown when another dropdown is opened.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/2/f2a2a12decd03d9293b5cf81fbab28de9a68c418.png)

---

<div class="post-metadata">

**Author:** ![Ryan\_Deardorff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_deardorff/32/63815_2.png) [@Ryan\_Deardorff](https://forum.inductiveautomation.com/u/Ryan_Deardorff)\
**Post date:** [June 25, 2024, 4:21pm UTC](https://forum.inductiveautomation.com/t/close-dropdown-when-other-dropdown-is-opened/92320/2 "2024-06-25T16:21:06Z")

</div>

I would try adding an onBlur event that:

- Removes all items from the dropdown and sets its value to None
- Re-populates the dropdown with those items
- Sets the selection back to what it was

The catch there might be "what it was"--if you're expecting that to be the item that was last hovered over without actually clicking it, you're out of luck, because only clicking will select it (and cause it to close).

---

<div class="post-metadata">

**Author:** ![shiva.jayara003](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@shiva.jayara003](https://forum.inductiveautomation.com/u/shiva.jayara003)\
**Post date:** [June 14, 2026, 1:30am UTC](https://forum.inductiveautomation.com/t/close-dropdown-when-other-dropdown-is-opened/92320/3 "2026-06-14T01:30:54Z")

</div>

This is not working. Also, the dropdown dont even call the onBlur event when clicked on another dropdown expand button.
