mirror of
https://github.com/Mibew/simple-icons.git
synced 2025-01-17 23:51:08 +03:00
Update the icon state as well if the search box is emptied
This commit is contained in:
parent
366bc21c5c
commit
b5df43cfbf
@ -538,10 +538,10 @@
|
|||||||
var value = e.target.value;
|
var value = e.target.value;
|
||||||
if (value) {
|
if (value) {
|
||||||
$search.classList.add('search--active');
|
$search.classList.add('search--active');
|
||||||
search(value);
|
|
||||||
} else {
|
} else {
|
||||||
$search.classList.remove('search--active');
|
$search.classList.remove('search--active');
|
||||||
}
|
}
|
||||||
|
search(value);
|
||||||
}, 250), false);
|
}, 250), false);
|
||||||
$searchClose.addEventListener('click', function(e) {
|
$searchClose.addEventListener('click', function(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
Loading…
Reference in New Issue
Block a user