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
|
||||
}
|
||||
if (event.key === 'Escape') {
|
||||
$(searchInput).val('');
|
||||
$(this).val('');
|
||||
$ac.fadeOut();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user