From 1acaae908603699e7cb785363f6ae309f055b7dc Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Fri, 10 Nov 2023 13:10:16 -0500 Subject: [PATCH] back to h2 --- app.js | 3 +-- index.html | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 016271f..f620800 100644 --- a/app.js +++ b/app.js @@ -14,7 +14,6 @@ for(const element of lisAndBody){ event.target.classList.remove('dragging'); }) element.addEventListener('drop', (event)=>{ - event.stopPropagation() event.target.classList.remove('dragging'); event.target.querySelector('ul').appendChild(currentDraggedItem) }) @@ -27,7 +26,7 @@ const deleteItem = (event)=>{ const updateItem = (event)=>{ event.preventDefault() const newValue = event.target.parentNode.querySelector('input').value - event.target.parentNode.querySelector('summary').innerHTML = newValue + event.target.parentNode.querySelector('h2').innerHTML = newValue } const createNewItem = (event)=>{ diff --git a/index.html b/index.html index 2fda147..36e5149 100644 --- a/index.html +++ b/index.html @@ -11,8 +11,9 @@