@hkparkjs
Posted
Hi, Blerim 👋
Good work on this challenge! 👍
I had the same issue you have, and I used .classList.add()/remove()
directly instead of using toggle()
to solve the problem.
For the detail, you can refer to my challenge page. https://www.frontendmentor.io/solutions/faq-accordion-card-YtmRMSmpPL
I hope my comment is helpful for you :)
Have a nice day! ✨
Marked as helpful