Propagation, Bubbling and Once
When you make an application, sometimes you nedde to get some input from the user. In Javascript, you most likely will use the addEventListener, and make a callback function fire when the user interacts.
What I didn't know (among a lot of things) was, that it is not only the element that have the eventListener added, that are affected byt the user action, but all of the parents to the element are registering the action.
It is not something you normally notice, and normally it is not a problem, but if you have some nested elements with an eventListener, you will see this happend.
I will try to make a small demostaration here. I hope it makes any sense.
If this have spiked your interest, you can find a great article here on Medium, where Vaibhav Sharma explain this in a really good way,