mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Improve search result keyboard styling
This commit is contained in:
parent
0bf5c0aa59
commit
9662b4b11d
2 changed files with 10 additions and 11 deletions
|
@ -148,9 +148,13 @@
|
|||
// De-focus and clear input box
|
||||
searchBox.value = "";
|
||||
searchBox.blur();
|
||||
} else if (searchTypeAhead.contains(document.activeElement)) {
|
||||
} else {
|
||||
// Hide the search results
|
||||
searchTypeAhead.classList.add("hidden");
|
||||
searchBox.focus();
|
||||
|
||||
if (searchTypeAhead.contains(document.activeElement)) {
|
||||
searchBox.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue