Skip to content

Commit

Permalink
fix for too long submenu appearing on other submenus in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
filrak committed Nov 30, 2018
1 parent 51a58aa commit ca4ac1a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
:id="category.id"
:name="category.name"
v-if="category.children_data.length > 0"
@click.native="activeSubMenu = category.id"
/>
<router-link
v-else
Expand All @@ -49,6 +50,7 @@
</router-link>

<sub-category
v-show="activeSubMenu === category.id"
:category-links="category.children_data"
:id="category.id"
:parent-slug="category.slug"
Expand Down Expand Up @@ -132,6 +134,7 @@ export default {
mixins: [SidebarMenu],
data () {
return {
activeSubMenu: null,
myAccountLinks: [
{
id: 1,
Expand Down

0 comments on commit ca4ac1a

Please sign in to comment.