am having users list and I want to attach an event with each user by addEventListener
this user list is coming dynamically from datbase nd refresh after 5 every seconds
this user list is in .then() method
and refrehes after every 5 seconds
this .then method lies in my first file that i placed before the file where i want to attach on click event
sometimes that event attached and sometimes not ? 😢
l
why can't you delegate the event listener to the parent element?
Обсуждают сегодня