From f09417158339ed0635c21a8e04fe2ca862c6a678 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Thu, 16 Apr 2020 15:45:17 +0200 Subject: [PATCH] rechanged keydown with keyup to prevent requests spam --- public/js/app/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app/search.js b/public/js/app/search.js index d121e07..7a72857 100644 --- a/public/js/app/search.js +++ b/public/js/app/search.js @@ -149,7 +149,7 @@ var playlistSearch = new Vue({ }) // Search section -$("#searchbar").keydown(function(e){ +$("#searchbar").keyup(function(e){ if(e.keyCode == 13){ term = this.value if (isValidURL(term)){