doc: decrease letter count for search to 2 (#10214)
parent
607dbd36d7
commit
9ee1d8c848
|
@ -98,8 +98,8 @@ function setupSearch() {
|
|||
search.classList.add('hidden');
|
||||
search.classList.remove('has-results');
|
||||
}
|
||||
} else if (searchValue.length > 2) {
|
||||
// search for less than 3 characters can display too much results
|
||||
} else if (searchValue.length >= 2) {
|
||||
// search for less than 2 characters can display too much results
|
||||
search.innerHTML = '';
|
||||
menu.style.display = 'none';
|
||||
if (search.classList.contains('hidden')) {
|
||||
|
|
Loading…
Reference in New Issue