Need accordion mode to prevent collapsing all sections

Open
#108 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript
Domain
frontend

Research direction

Start by tracing the accordion=true entry point and the section-collapse behavior. The change is complete when the requested flag keeps one section open, prevents collapsing the currently open section, and still allows switching to another section.

Written by the indexing model from the issue text.

Description

Currently in accordion mode (accordion=true) all the sections can be collapsed. We need a flag so that there is always one section open, e.g., if a section is open you cannot click on that section to collapse it.

Dominant language
TypeScript
Stars
332
Forks
140
Avg merge
22h 19m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-component/collapse

All issues in react-component/collapse

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.