Skip to content

Commit

Permalink
modify form eventlistener
Browse files Browse the repository at this point in the history
  • Loading branch information
xchwan committed Mar 22, 2022
1 parent 40b6bc6 commit 48ea9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function deleteList() {
result.removeChild(result.lastChild)
}
}
document.querySelector("#searchForm").addEventListener("click", (event) => {
document.querySelector("#searchForm").addEventListener("submit", (event) => {
event.preventDefault()
})
document.querySelector(".btn").addEventListener("click", (event) => {
Expand Down

0 comments on commit 48ea9cd

Please sign in to comment.