master
Matt Huntington 2 years ago
parent 2682ab8b8a
commit ae0f1553f3

@ -40,7 +40,7 @@ const createNewItem = (event)=>{
attachDragEvents(newItem) attachDragEvents(newItem)
if(event){ if(event){
event.currentTarget.parentNode.querySelector('ul').appendChild(newItem) event.currentTarget.closest('li').querySelector('ul').appendChild(newItem)
} else { } else {
document.querySelector('ul').appendChild(newItem) document.querySelector('ul').appendChild(newItem)
} }

Loading…
Cancel
Save