Clear #search-input on Escape

This commit is contained in:
Peter Stuifzand 2020-11-01 18:17:13 +01:00
parent 680e600fbe
commit 199ccee880

View File

@ -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;
} }