Submitted about 1 year ago
REST Countries API with color theme switcher solution
@Psargar616
Design comparison
SolutionDesign
Solution retrospective
Every user case works fine but not sure why the toggle functionality is not working on clicking back button. If anyone got it please help. Thank you
Community feedback
- Account deleted
Hey, found your issue, you are trying to get the back button with a query selector but you haven't yet rendered the modal with the back button yet. So it doesn't exist. You just have to move the query selector and the event listener to the
showCountryDetails
function and it'll work!Marked as helpful0
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