From 199ccee8809dae0f1c289d696c35be26e8645f0b Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 1 Nov 2020 18:17:13 +0100 Subject: [PATCH] Clear #search-input on Escape --- editor/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/index.js b/editor/src/index.js index ed03a74..1d2dbf7 100644 --- a/editor/src/index.js +++ b/editor/src/index.js @@ -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; }