Open
Description
What component (if applicable)
- Component name: Combobox
Describe the bug
When the combobox fails to match the text input, we get a console error Uncaught Error: Unexpected undefined
.
To Reproduce
Steps to reproduce the behavior:
- Go to https://catalyst.tailwindui.com/docs/combobox
- Open the browser's Dev Tools console
- Click on the first combobox on the page
- Clear the placeholder text
- Type "jo" or any substring not found in the list
- See error
In step 5, alternatively we can also type " tom cook" or "tom cook " (with an extra space at the beginning or the end), and the same error occurs even though "tom cook" has a match.
Expected behavior
No console error.
Screenshots
https://github.com/user-attachments/assets/39d2a63c-b624-4cf8-a800-d2a7de05c394
Browser/Device (if applicable)
- OS: macOS
- Browser:
- Chrome v136.0.7103.49 (Official Build) (arm64)
- Brave v1.78.94 Chromium: 136.0.7103.60 (Official Build) (arm64)
Additional context
More details on the console error:
Unhandled Runtime Error
Error: Unexpected undefined
Call Stack
notUndefined
node_modules/@tanstack/virtual-core/dist/esm/utils.js (50:1)
eval
node_modules/@tanstack/virtual-core/dist/esm/index.js (666:48)
Metadata
Metadata
Assignees
Labels
No labels