master
Matt Huntington 2 years ago
parent 2682ab8b8a
commit ae0f1553f3

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

Loading…
Cancel
Save