0

I need some help, my code not working in the first step in drag items

https://codepen.io/amira-mamdouh-the-animator/pen/qBMMXPa

20th Mar 2023, 11:32 AM
Amira Mamdouh
Amira Mamdouh - avatar
2 Answers
+ 2
The function dragItem is never invoked when a new task is added. This is due to dragItem being invoked outside of the code block for the onclick handler at line 8 You should move dragItem() from line 17 to line 16 inside the curly bracket. Then dragItem() will be invoked every time a new task is added.
24th Mar 2023, 7:46 AM
ODLNT
ODLNT - avatar
+ 3
Please put your link in description not in tag
20th Mar 2023, 12:12 PM
Herobrine
Herobrine - avatar