Browse Source

feat: prevent submit for search form

main
Inhji Y. 7 months ago
parent
commit
06438ff69e
  1. 2
      assets/js/hooks.js

2
assets/js/hooks.js

@ -18,6 +18,8 @@ const SearchForm = {
if (queryInput) {
queryInput.focus()
queryInput.form.addEventListener("submit", e => e.preventDefault())
}
}
}

Loading…
Cancel
Save