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

Update the icon state as well if the search box is emptied

This commit is contained in:
nietonfir 2017-07-09 22:57:19 +02:00
parent 366bc21c5c
commit b5df43cfbf

View File

@ -538,10 +538,10 @@
var value = e.target.value;
if (value) {
$search.classList.add('search--active');
search(value);
} else {
$search.classList.remove('search--active');
}
search(value);
}, 250), false);
$searchClose.addEventListener('click', function(e) {
e.stopPropagation();