Skip to content

Commit

Permalink
Optimize isExpanded method
Browse files Browse the repository at this point in the history
  • Loading branch information
vovayatsyuk committed Dec 19, 2024
1 parent f6d08ad commit 152d1b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion view/frontend/web/js/components/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@
},

isExpanded: function () {
this.element.find(this.options.menus).find(this.options.menus).addClass('expanded');
this.element.find(`:scope ${this.options.menus} ${this.options.menus}`)
.microtasks()
.addClass('expanded');
},

_setActiveMenu: function () {
Expand Down

0 comments on commit 152d1b9

Please sign in to comment.