react-component / react-component/menu
How to open and close all SubMenu items for inline?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 701
- Forks
- 266
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 3
Description
It would be great to have a flag to open and close all submenu items for inline menu.
Is this possible?
Or just set a prop on SubMenu that it is open / expanded.
Managing the state list of openKeys can create various bugs.
Perhaps we can map isOpen as a external prop also?
https://github.com/react-component/menu/blob/353039be098cd2c65593c7f8217428bb3e872df0/src/SubMenu.jsx#L553
Contributor guide
No contributing guide indexed for this repository
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 at src/SubMenu.jsx near the referenced line and review how inline submenu state is handled through openKeys. Clarify whether the intended API is a flag for opening or closing all inline submenus or an externally controlled SubMenu prop. Done means the chosen behavior is defined and the relevant open-state management works without requiring callers to maintain a fragile state list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100