Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] refactor: Improve sidebar item handling in handleMenuClick
In the handleMenuClick function, the logic has been updated to handle different types of sidebar items more effectively. The function now distinguishes between dropdown items, header links, and regular sidebar items. Dropdown items and header links with href="#" are prevented from closing the sidebar. Additionally, header links that are not part of the sidebar now scroll to the top instead of collapsing the sidebar.
- Loading branch information