themesberg / themesberg/flowbite-react
<Accordion.Panel isOpen={true}> doesn't work also setOpen and isOpen doesn't work with props
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
In the project, I need to manage the accordions panel and be able to open and close them, but I can't, I also checked the Flowbite codes and realized that they are not written correctly.
Expected behavior
I want to manage isOpen and setOpen from the accordion panel and they work correctly.
Screenshots
System information:
- Device: Mac
- Browser: Chrome
Project information:
- Tailwind: ^3.2.4
- Flowbite: ^1.6.0
- Flowbite React: ^0.4.2
- Type: Next.js - 13.4.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the controlled Accordion.Panel behavior in the reported Next.js project with isOpen={true}, then inspect the Flowbite React accordion component and its props handling. Done means the panel can be opened and closed through isOpen and setOpen props, with the behavior verified in the relevant component usage or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, tailwindcss, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100