mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Keep focus on input after selecting an autocomplete option
This is particularly helpful on mobile, now tapping on an item from the autocomplete dropdown keeps the keyboard visible.
This commit is contained in:
@@ -274,6 +274,9 @@ export default function(options) {
|
||||
ul.find("li").click(function() {
|
||||
selectedOption = ul.find("li").index(this);
|
||||
completeTerm(autocompleteOptions[selectedOption]);
|
||||
if (!options.single) {
|
||||
me.focus();
|
||||
}
|
||||
return false;
|
||||
});
|
||||
var pos = null;
|
||||
|
||||
Reference in New Issue
Block a user