Skip to content

fix: 🐛 Select typeahead no longer skips options with falsy val - #210

Open
SlDo wants to merge 1 commit into
mainfrom
fix/select-falsy-typeahead
Open

fix: 🐛 Select typeahead no longer skips options with falsy val#210
SlDo wants to merge 1 commit into
mainfrom
fix/select-falsy-typeahead

Conversation

@SlDo

@SlDo SlDo commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Fix Select typeahead skipping options with falsy values

onMatch (typeahead selection while the listbox is closed) guarded the matched value with if (!value) return, so options whose value is 0 or an empty string could be highlighted but never actually selected — common with numeric IDs. The guard now checks for undefined (a missing map entry) only. Covered with a regression test that selects a value={0} option by typing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant