arrow_backBACK TO DRILLS
Blue BelteventslockPREMIUM

Event propagation bubbling

A button inside a parent <div> both have onClick handlers. When the button is clicked, both handlers run. Why?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.