Auto-highlight only option
See original GitHub issueIt would be handy to select the first value in the dropdown on pressing ENTER even if that value is not selected
case _keyCode.RETURN:
// Prevent submitting forms.
e.preventDefault();
if (this.state.showMenu) {
var selected = options[activeIndex] || options[0];
selected && this._handleAddOption(selected);
}
break;
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Highlight patterns and trends with conditional formatting in ...
If you want to locate only cells with the specific conditional format of the cell that you selected in step 1, under Options,...
Read more >Highlight the Active Row and Column in a Data Range in Excel
In your example it is not necessary to go the F2 then enter route. Is there an option setting I am missing? Something...
Read more >Auto Highlight|Wondershare Filmora Guide
There are 4 ways to launch the Auto Highlight feature in Filmora: 1. Open Filmora, you will see the Auto Highlight option at...
Read more >How to highlight active row and column in Excel - Ablebits
Auto -highlight row and column of selected cell with VBA ... color of all cells on the sheet by setting the ColorIndex property...
Read more >Create Advanced Highlight Actions - Tableau Help
Select - Click a mark in the view to run the action. This option works well for all types of actions. Menu -...
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 Free
Top 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
Thanks @daschi, that was very helpful! Here’s a similar implementation that doesn’t require jQuery.
I call this from
componentDidMount
andcomponentDidUpdate
.I wrap my Typeahead in a div like this:
And here is saveTypeahead:
highlightOnlyResult
prop added in v2.0.0-alpha.1