react-lightning-design-system
react-lightning-design-system copied to clipboard
Enhance DropdownMenu Component to Control Nested Submenu Visibility
Overview
The DropdownMenu component could not control the opening and closing of nested submenus, and when switching between submenus, the original menu remained open. When a submenu is switched, the original menu should be closed and the newly clicked menu should be opened.
What I Did
- Manage the opening and closing of all menus with objects
- Move state management to parent component and pass it to child components in context
:sparkles::sparkles: That's perfect, there is no visual difference! :sparkles::sparkles:
Check out the report here.