Do not try to tab complete if search suggestions are disabled.
This commit is contained in:
parent
c41f839a6a
commit
41b94bfa74
@ -123,6 +123,10 @@ export default function Search({ options }) {
|
|||||||
if (event.key === "Tab") {
|
if (event.key === "Tab") {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
|
if (!(options.showSearchSuggestions && (selectedProvider.suggestionUrl || options.suggestionUrl))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const list = document.getElementById("comboboxOptions").getElementsByTagName("li");
|
const list = document.getElementById("comboboxOptions").getElementsByTagName("li");
|
||||||
if (list.length === 0) {
|
if (list.length === 0) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user