[Autocomplete] Option highlighted event
See original GitHub issue- [x ] I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡
<Autocomplete
onOptionHighlighted={(option: T, reason: 'keyboardNavigation' | 'mouseOver' | 'automatic') => { ... }}
...
/>
This event would trigger when an option is highlighted (such that pressing Enter would then select that option). For instance, it would trigger upon using the arrow keys to cycle through the options and report which option is currently highlighted.
Motivation 🔦
Give context to the user on the highlighted option to allow him to make a better choice. Right now, we only know which option is selected after the user makes a choice; this would allow providing feedback proactively rather than reactively.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (5 by maintainers)
Top Results From Across the Web
[Autocomplete] Option highlighted event · Issue #20588 - GitHub
This event would trigger when an option is highlighted (such that pressing Enter would then select that option).
Read more >Material UI Autocomplete: highlighted option should become ...
Unfortunately, the highlighted state of the option is lost upon saving the title or value of the option as the input. Is there...
Read more >Autocomplete API - Material UI - MUI
Name Type Default
options * array
renderInput * func
autoComplete bool false
Read more >Autocomplete Widget - jQuery UI API Documentation
Description: Autocomplete enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.
Read more >select - API Reference - Kendo UI AutoComplete
Important: The event is not fired when an item is selected programmatically. Event Data. e.dataItem Object. The data item instance of the selected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I Will create a PR with this feature soon 😃
Hi @theGirrafish I will correct the issue 😃