Submitted over 1 year ago
JS Events, JS classList, CSS Flexbox, CSS Media Queries
@hammichalkovic
Design comparison
SolutionDesign
Solution retrospective
It's my first JS solution!
Do you know why when clicking on titles/buttons in my accordion (from top to bottom) it closes all the details (description paragraphs) on first click (not only the last opened) , and only after second click opens the new title/button? And by surprise everything works well while clicking from bottom to top.
I'll be very glad to see your pieces of advice!
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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