Item B then search for Item D (no results). Close dropdown (do not click outside).Item B displayed.Item D displayed. Item B is displayed back if we click outside instead.Item B then search for Item D (no results). Click outside, open the dropdown and click outside once more.Item B selected.Item A selected.0.73.0
Does selectOnBlur={false} do the trick?
Cool, it does for items 1 and 3!
I wonder if that should be the default option...
First, thank you for the super awesome bug report. Makes it a joy to solve when people are so meticulous!
I wonder if that should be the default option...
It is not for parity with SUI core, which selects on blur by default as well. It makes it a little easier to quickly tab through forms.
Issue 2...
Yep, bug:
selectedIndex (highlighted item) to 0, which is Item A
When searching for Item D, no values are shown _but the selectedIndex is still 0_. I think this is the issue. When there are no matching values, we should have a selectedIndex of -1.

I would start by looking at Dropdown.js setSelectedIndex(). This method may not be setting the correct selectedIndex in this case.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.
Any update on the status of this? Seems like it would be a good thing to have fixed!
PR up in https://github.com/Semantic-Org/Semantic-UI-React/pull/2375. It will be fixed when merged 馃帀
There has been no activity in this thread for 90 days. While we care about every issue and we鈥檇 love to see this fixed, the core team鈥檚 time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one.
However, PRs for this issue will of course be accepted and welcome!
If there is no more activity in the next 90 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks!
Hi, I am interested in this bug fix. Currently I'm having similar behaviour, when clicked in "no results" a previous value is assigned. Any resolution?
Thanks!
There has been no activity in this thread for 180 days. While we care about every issue and we鈥檇 love to see this fixed, the core team鈥檚 time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one.
However, PRs for this issue will of course be accepted and welcome!
If there is no more activity in the next 180 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks!
This issue will be closed due to lack of activity for 12 months. If you鈥檇 like this to be reopened, just leave a comment; we do monitor them!
There has been no activity in this thread for 180 days. While we care about every issue and we鈥檇 love to see this fixed, the core team鈥檚 time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one.
However, PRs for this issue will of course be accepted and welcome!
If there is no more activity in the next 180 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks!
Dependencies:
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^0.87.3",
searchQuery.By using this 3 props:
searchQuery<Dropdown
searchQuery={
dropdownSearchValue
}
/>
onSearchChange<Dropdown
onSearchChange={
( _, { searchQuery } ) => setDropdownSearchValue(searchQuery)
}
/>
onClose<Dropdown
onClose={
() => setDropdownSearchValue('')
}
/>
Complete version
const [dropdownSearchValue, setDropdownSearchValue] = useState('');
<Dropdown
searchQuery={
dropdownSearchValue
}
onSearchChange={
( _, { searchQuery } ) => setDropdownSearchValue(searchQuery)
}
onClose={
() => setDropdownSearchValue('')
}
/>
Issue 2
- Steps: Select
Item Bthen search forItem D(no results). Close dropdown (do not click outside).- Expected Result:
Item Bdisplayed.- Actual Result:
Item Ddisplayed.Item Bis displayed back if we click outside instead.
This issue is still present the latest actual release.


Most helpful comment
Does
selectOnBlur={false}do the trick?