Interactive Rating Component with HTML, CSS and JS

Solution retrospective
I know you can use stopPropagation() to stop events from bubbling but for some reason I was having trouble getting that to work.
Is there anyone that used event delegation to handle events for this or any JavaScript related project?
Any feedback would be much appreciated.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @buneeIsSlo
@hyrongennike, Your solution seems to be working great, where and why do you want to use
stopPropagation()
?
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