You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve the api.collapseAll is not a function error, implement the collapseAll function in the API and ensure it is correctly referenced in the Menu.tsx file.
Implement collapseAll in the API:
Locate the API file where other functions like toggleNav, toggleToolbar, etc., are defined.
Add the collapseAll function.
// Example API implementationexportconstcollapseAll=()=>{// Logic to collapse all items};
Update Menu.tsx:
Ensure collapseAll is correctly imported and used in the useMenu hook.
Describe the bug
The "collapse all" action is broken. It logs an error in the console:
Reproduction link
https://635781f3500dd2c49e189caf-hyyihpyiuz.chromatic.com
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: