beRajeevKumar / Frontend_Mentor

Sharpen Your Frontend Development Expertise with Frontend Mentor Challenges.
https://openfrontendmentor.netlify.app/
MIT License
53 stars 136 forks source link

[BUG] Accordion Not Displaying Answer After First Click #413

Open Saurabhchaudhary9799 opened 2 weeks ago

Saurabhchaudhary9799 commented 2 weeks ago

Description

Description :

When clicking on an accordion item for the first time, the answer is displayed as expected. However, after that, clicking on any other accordion item does not display the answer content.

Steps to Reproduce:

  1. Click on any accordion item for the first time – the answer is displayed.
  2. Click on a different accordion item – the answer is not displayed.
  3. This issue persists across multiple accordion items after the first click.

Screenshots

Screencast from 2024-10-17 16-08-12.webm

Any additional information?

Expected Behavior: Each accordion item should display its respective answer content when clicked, regardless of the order of interaction.

Actual Behavior: Only the first click on an accordion item displays the answer content. Further clicks on other items do not trigger the answer display.

What browser are you seeing the problem on?

Chrome

Checklist

github-actions[bot] commented 2 weeks ago

👋 Thank you @Saurabhchaudhary9799 for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!