1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-26 01:00:27 +02:00

Focus the search input on load (#3572)

Focus the search input on load, if JavaScript is enabled.
This commit is contained in:
Eric Cornelissen 2020-09-18 11:40:34 +03:00 committed by GitHub
parent 8fe7a705c3
commit 37222f7679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@
// Remove the "disabled" attribute from the search input
$searchInput.setAttribute('title', 'Search Simple Icons');
$searchInput.removeAttribute('disabled');
$searchInput.focus();
// include a modified debounce underscorejs helper function.
// see