doc: decrease letter count for search to 2 (#10214)

pull/10217/head
Anton Zavodchikov 2021-05-27 12:17:25 +05:00 committed by GitHub
parent 607dbd36d7
commit 9ee1d8c848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -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')) {