yaminncco / vue-sidebar-menu

A Vue.js Sidebar Menu Component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatically close sidebar on mobile when submenu item is clicked

sebastian-raubach opened this issue · comments

Currently, when on mobile, the sidebar won't automatically close when a submenu item is selected. This comment (#165 (comment)) suggests that this is intentional to prevent accidental click closes.

But how would I change it so that it does close when a submenu item is selected? At the moment people navigate to a different page, but may not notice that it was successful, because the submenu covers most of the screen.

I'll try to implement or provide a solution for this.

Added this as default behavior in v5.2.4.

Nice job! Any chance to get this backported to the vue2 branch?