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:
parent
8fe7a705c3
commit
37222f7679
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user