yaminncco / vue-sidebar-menu

A Vue.js Sidebar Menu Component
MIT License
656 stars 193 forks source link

Automatically close sidebar on mobile when submenu item is clicked #227

Closed sebastian-raubach closed 2 years ago

sebastian-raubach commented 2 years ago

Currently, when on mobile, the sidebar won't automatically close when a submenu item is selected. This comment (https://github.com/yaminncco/vue-sidebar-menu/issues/165#issuecomment-778600775) 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.

yaminncco commented 2 years ago

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

yaminncco commented 2 years ago

Added this as default behavior in v5.2.4.

sebastian-raubach commented 2 years ago

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