Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond authored Dec 14, 2023
1 parent de2ffcd commit 57a6bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wikiblogarden/tadi-web/hello-world/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ const template = document.querySelector("template")

const addItem = () => {
const item = template.content.cloneNode(true)
const delete = item.querySelector("button")
delete.addEventListener("click", () => item.remove())
const button = item.querySelector("button")
button.addEventListener("click", () => item.remove())
main.append(item)
}
</script>
Expand Down

0 comments on commit 57a6bae

Please sign in to comment.