Allow normal form submit with the enter key
This commit is contained in:
parent
2939dfaf9c
commit
0a3dc9d10f
1 changed files with 0 additions and 5 deletions
|
@ -18,11 +18,6 @@ function debouncer(interval, callback) {
|
||||||
const results = form.querySelector('.live-results');
|
const results = form.querySelector('.live-results');
|
||||||
const resultPrototype = document.getElementById('search-result-prototype').firstChild;
|
const resultPrototype = document.getElementById('search-result-prototype').firstChild;
|
||||||
|
|
||||||
form.addEventListener('submit', function (ev) {
|
|
||||||
ev.preventDefault();
|
|
||||||
ev.stopPropagation();
|
|
||||||
});
|
|
||||||
|
|
||||||
function submit() {
|
function submit() {
|
||||||
if (input.value === "") {
|
if (input.value === "") {
|
||||||
results.classList.remove("show");
|
results.classList.remove("show");
|
||||||
|
|
Loading…
Reference in a new issue