Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Request path contains unescaped characters
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Practice catching event bubbling (Sass, JS)

Benja.min 740

@BenjaDotMin

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello there! I have always struggled with understanding how to capture/prevent events bubbling up and triggering when not required.

Here I got the chance to figure out how to:

  • Click anywhere in the doc to close the social media popup
  • When clicking inside the social media popup, do not close it (stop propagation)

Thank you for any advice

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord