# Selected items in a select are unselected on every interaction

**URL:** https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737
**Category:** Help me!
**Tags:** smart-action
**Created:** [December 21, 2022, 5:07pm UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737 "2022-12-21T17:07:05Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Yevhen\_Popenko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/yevhen_popenko/32/5532_2.png) [@Yevhen\_Popenko](https://community.forestadmin.com/u/Yevhen_Popenko)
#### Post date: [December 21, 2022, 5:07pm UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/1 "2022-12-21T17:07:06Z")

</div>

## Feature(s) impacted

I have a smart action of a enum type that produces a Select component. It look like this

```javascript
{
    name: 'Manage Items',
    type: 'single',
    fields: [
        {
            field: 'Test',
            type: ['Enum'],
            enums: [
                '1',
                '2',
                '3',
                '4',
                '5',
                '6'
            ],
        },
    ],
}

```

## Observed behavior

If I select elements and after that click anywhere in the Select component - it deselects the first element.  
 ![smart-action-bug](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/3/3ab104d315c8405444e0f0b8f09dfe538113c218.gif)

## Expected behavior

Selected items are only de-selected if I click on X button

## Context

- Project name: TymeshiftFA
- Team name: Engineering
- Environment name: Production
- Agent type & version: forest-express: ^9.5.1, forest-express-sequelize: ^8.5.8
- Recent changes made on your end if any: …

---

<div class="post-metadata">

### Author: ![Florian\_Gonzales](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/florian_gonzales/32/5541_2.png) [@Florian\_Gonzales](https://community.forestadmin.com/u/Florian_Gonzales)
#### Post date: [December 22, 2022, 9:42am UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/2 "2022-12-22T09:42:13Z")

</div>

Hello @Yevhen_Popenko 👋,

Thanks for your feedback ! I can’t reproduce this bug on my side, do you have more information about what happens in the console (error, …) 🤔 ?

Kind regards,

Florian

---

<div class="post-metadata">

### Author: ![Yevhen\_Popenko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/yevhen_popenko/32/5532_2.png) [@Yevhen\_Popenko](https://community.forestadmin.com/u/Yevhen_Popenko)
#### Post date: [December 22, 2022, 1:22pm UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/3 "2022-12-22T13:22:13Z")

</div>

Hello @Florian_Gonzales

There is no errors or any messages really in either browser console or server, and it does not do any network requests.

It feels like a purely UI issue, I would guess with the JS implementation of the Select component.

How can I help you reproducing it?  
For my side it is reproduced consistently in any Smart Action Form with the Select element.

Thank you!

---

<div class="post-metadata">

### Author: ![Florian\_Gonzales](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/florian_gonzales/32/5541_2.png) [@Florian\_Gonzales](https://community.forestadmin.com/u/Florian_Gonzales)
#### Post date: [December 22, 2022, 4:48pm UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/4 "2022-12-22T16:48:49Z")

</div>

Which internet browser do you use? It may help us to reproduce the bug 🤔

---

<div class="post-metadata">

### Author: ![Yevhen\_Popenko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/yevhen_popenko/32/5532_2.png) [@Yevhen\_Popenko](https://community.forestadmin.com/u/Yevhen_Popenko)
#### Post date: [December 23, 2022, 10:59pm UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/5 "2022-12-23T22:59:34Z")

</div>

It’s reproducible in the same way in both latest chrome 108.0.5359.124 and safari 16.1 (18614.2.9.1.12)

I will try to create some more isolated test cases if that would help.

---

<div class="post-metadata">

### Author: ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)
#### Post date: [December 26, 2022, 11:07am UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/6 "2022-12-26T11:07:02Z")

</div>

Totally able to reproduce on my end. Super weird bug 🤔

I’ll open a ticket on our end. Sorry for the inconvenience, we will let you know once the fix is released.

---

<div class="post-metadata">

### Author: ![Yevhen\_Popenko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/yevhen_popenko/32/5532_2.png) [@Yevhen\_Popenko](https://community.forestadmin.com/u/Yevhen_Popenko)
#### Post date: [December 27, 2022, 1:36pm UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/8 "2022-12-27T13:36:03Z")

</div>

Totally understandable, thank you a lot 🙂

---

<div class="post-metadata">

### Author: ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)
#### Post date: [January 4, 2023, 8:44am UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/9 "2023-01-04T08:44:33Z")

</div>

Hi @Yevhen_Popenko ,

Sorry for the inconvenience.  
The bug is fixed and released.

Best regards,

Shohan

---

<div class="post-metadata">

### Author: ![Yevhen\_Popenko](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/yevhen_popenko/32/5532_2.png) [@Yevhen\_Popenko](https://community.forestadmin.com/u/Yevhen_Popenko)
#### Post date: [January 9, 2023, 11:41am UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/10 "2023-01-09T11:41:52Z")

</div>

Hi.

Sorry to say, but for us the bug is still there, exactly as it was before.  
Do we need to do something on our side? Was the fix already released for everyone?

Thank you in advance!

---

<div class="post-metadata">

### Author: ![heyMakar](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/heymakar/32/5411_2.png) [@heyMakar](https://community.forestadmin.com/u/heyMakar)
#### Post date: [January 10, 2023, 3:54am UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/11 "2023-01-10T03:54:19Z")

</div>

Hi. We have same problem, will wait for answer too

Latest mongoose driver won’t fix the problem (mb it shouldn’t, but we tried)

---

<div class="post-metadata">

### Author: ![shohanr](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/shohanr/32/4999_2.png) [@shohanr](https://community.forestadmin.com/u/shohanr)
#### Post date: [January 11, 2023, 10:52am UTC](https://community.forestadmin.com/t/selected-items-in-a-select-are-unselected-on-every-interaction/5737/14 "2023-01-11T10:52:20Z")

</div>

Hi @Yevhen_Popenko , @heyMakar ,

The fix has been released. We are sorry for the incovenience of the issue.  
Have a good day,

Shohan
