# Perspective Single Select Dropdown - remains in edit state after clicking on clear icon

**URL:** <https://forum.inductiveautomation.com/t/perspective-single-select-dropdown-remains-in-edit-state-after-clicking-on-clear-icon/95364>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 30, 2024, 11:13am UTC](https://forum.inductiveautomation.com/t/perspective-single-select-dropdown-remains-in-edit-state-after-clicking-on-clear-icon/95364 "2024-08-30T11:13:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogini\_Marathe](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yogini\_Marathe](https://forum.inductiveautomation.com/u/Yogini_Marathe)\
**Post date:** [August 30, 2024, 11:13am UTC](https://forum.inductiveautomation.com/t/perspective-single-select-dropdown-remains-in-edit-state-after-clicking-on-clear-icon/95364/1 "2024-08-30T11:13:04Z")

</div>

We have a single select dropdown with placeholder text and show clear icon enabled.

Placeholder text is shown when nothing is selected.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/8/a84a6f17474386e1d161b228060731aba9cc4eb3.png)

Once you select an option and clear it using clear icon as shown in the image below  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/4/b41144ac30996590edd8be1c8aed455601f2e13d.png)

the dropdown remains in edit state instead of showing the placeholder text.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e51b40bf104d7f38048e25ec6a05d72992775898.png)

Once you click somewhere else on the screen i.e. when dropdown loses focus, placeholder text is shown again.

This happens only for single select dropdown with showClearIcon = true , search -\> enabled = true

Seen on Ignition 8.1.42 and 8.1.43.

The single select dropdown - clear icon click was working correctly on Ignition version 8.1.18. Observed this issue when upgraded to 8.1.42 recently.

Please advise.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 30, 2024, 12:35pm UTC](https://forum.inductiveautomation.com/t/perspective-single-select-dropdown-remains-in-edit-state-after-clicking-on-clear-icon/95364/2 "2024-08-30T12:35:14Z")

</div>

Yea it's a bit weird... I hope they fix that soon.  
In the meantime, you can add an `onActionPerformed` script to your dropdown (or a change script, but I prefer events), and put this in it:

```python
if currentValue.value is None:
	self.parent.focus()

```

This will switch the focus to the parent container of the dropdown, but you can target anything you want.

edit: Actually you could even remove the null check, if you'd rather unfocus the dropdown after a selection too.

---

<div class="post-metadata">

**Author:** ![Yogini\_Marathe](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@Yogini\_Marathe](https://forum.inductiveautomation.com/u/Yogini_Marathe)\
**Post date:** [September 2, 2024, 6:57am UTC](https://forum.inductiveautomation.com/t/perspective-single-select-dropdown-remains-in-edit-state-after-clicking-on-clear-icon/95364/3 "2024-09-02T06:57:21Z")

</div>

Thank you @pascal.fragnoud.  
We handled this in the value change event and are shifting focus on another text input. This is working fine for us.
