From 0a3dc9d10f56d9dfd85630da67244f4ee290f89f Mon Sep 17 00:00:00 2001 From: Magnus Hoff Date: Wed, 25 Oct 2017 13:53:16 +0200 Subject: [PATCH] Allow normal form submit with the enter key --- assets/search.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/assets/search.js b/assets/search.js index f520952..24f0c5d 100644 --- a/assets/search.js +++ b/assets/search.js @@ -18,11 +18,6 @@ function debouncer(interval, callback) { const results = form.querySelector('.live-results'); const resultPrototype = document.getElementById('search-result-prototype').firstChild; - form.addEventListener('submit', function (ev) { - ev.preventDefault(); - ev.stopPropagation(); - }); - function submit() { if (input.value === "") { results.classList.remove("show");