Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://stackblitz.com/edit/react-taee4w?file=Demo.tsx
Steps:
- With empty input box, use kb arrows to select 3rd option and hit Enter
- Press arrow down and observe which option is highlighted
Current behavior 😯
4th option is highlighted
Expected behavior 🤔
1st option should be highlighted
Context 🔦
If you remove limit from createFilterOptions, it works as expected. Likely connected to the deps array of syncHighlightedIndex which includes filteredOptions.length
Your environment 🌎
No response
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://stackblitz.com/edit/react-taee4w?file=Demo.tsx
Steps:
Current behavior 😯
4th option is highlighted
Expected behavior 🤔
1st option should be highlighted
Context 🔦
If you remove
limitfromcreateFilterOptions, it works as expected. Likely connected to the deps array ofsyncHighlightedIndexwhich includesfilteredOptions.lengthYour environment 🌎
No response