Skip to content

🐛 Bug: FAQ Accordion Tabs Do Not Close on Repeated Clicks #1290

Open
@Karan-Palan

Description

@Karan-Palan

Describe the bug

In the FAQ section, when a question is expanded by clicking on its tab header, clicking on the same header again does not toggle it closed. This behavior forces the user to click the "x" icon to close the tab, creating an inconsistent experience.

Steps To Reproduce

  1. Go to the FAQ section on the JSON Schema website.
  2. Click on the "+" icon of any question to expand its content, then click on 'x' icon, it will close
  3. Click on the same tab header again.
  4. Observe that the tab remains open instead of toggling closed.

Expected Behavior

Clicking on the tab header of an expanded FAQ question should close the accordion, allowing users to toggle it on and off by clicking the same header.

Screenshots

WhatsApp.Video.2025-01-11.at.14.54.47.mp4

Device Information [optional]

- OS: Windows 11 (as recording shows mouse cursor)
- Browser: Browser
- version:

Are you working on this issue?

Yes

Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)

No

Metadata

Metadata

Assignees

Labels

Status: AcceptedIt's clear what the subject of the issue is about, and what the resolution should be.Status: In ProgressThis issue is being worked on, and has someone assigned.🐛 BugIndicates that the issue is a bug or defect.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions