Clear #search-input on Escape
This commit is contained in:
parent
680e600fbe
commit
199ccee880
|
@ -39,7 +39,7 @@ $(document).on('keydown', '#search-input', function (event) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (event.key === 'Escape') {
|
if (event.key === 'Escape') {
|
||||||
$(searchInput).val('');
|
$(this).val('');
|
||||||
$ac.fadeOut();
|
$ac.fadeOut();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user