# Dropdown issue on Windows

**URL:** <https://forums.creativeclouddeveloper.com/t/dropdown-issue-on-windows/1214>\
**Category:** UXP Plugin API\
**Tags:** api-feedback\
**Created:** [August 31, 2019, 10:52pm UTC](https://forums.creativeclouddeveloper.com/t/dropdown-issue-on-windows/1214 "2019-08-31T22:52:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [August 31, 2019, 10:52pm UTC](https://forums.creativeclouddeveloper.com/t/dropdown-issue-on-windows/1214/1 "2019-08-31T22:52:37Z")

</div>

### Issue

I have two dropdowns: Category and Item.  
I need to re-build the Item dropdown’s options and set its `selectedIndex` to `0` (having the first item selected) each time I change the Category.  
xdx file attached for a quick look.  
[DROPDOWN\_TEST.xdx](https://forums.creativeclouddeveloper.com/uploads/short-url/2bKlBkRkZOJupT3bTsft7XULMWw.xdx) (5.1 KB)

### Steps to reproduce

- launch the plugin – both dropdowns are set correctly
- select another Category

### Expected Behavior

The Item dropdown is re-built and its `selectedIndex` is set to `0`. No Item’s `onchange` event detected.

### Actual Behavior

The Item dropdown is re-built but its `selectedIndex` is set to `-1` (unselected state). Its `onchange` event is triggered.

### Additional information

This happens on **Windows only**. On Mac all works fine.  
It seems that the only way is to remove the Item dropdown then create it from scratch each time a Category has changed (uncomment code at lines 125-133)

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [September 3, 2019, 1:36pm UTC](https://forums.creativeclouddeveloper.com/t/dropdown-issue-on-windows/1214/2 "2019-09-03T13:36:31Z")

</div>

will look into it this week. If anyone else can help out, please do!

---

<div class="post-metadata">

**Author:** ![PaoloBiagini](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/paolobiagini/32/29_2.png) [@PaoloBiagini](https://forums.creativeclouddeveloper.com/u/PaoloBiagini)\
**Post date:** [September 10, 2019, 3:33pm UTC](https://forums.creativeclouddeveloper.com/t/dropdown-issue-on-windows/1214/3 "2019-09-10T15:33:31Z")

</div>

hi @stevekwak, any good news?
