Reuse variable

pull/2751/head
XhmikosR 2020-05-31 21:27:44 +03:00
parent e56939983d
commit cb85af826e
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ const Dropdown = ($ => {
this._element.siblings().show().toggleClass('show')
if (!this._element.next().hasClass('show')) {
this._element.parents('.dropdown-menu').first().find('.show').removeClass('show').hide()
this._element.parents(Selector.DROPDOWN_MENU).first().find('.show').removeClass('show').hide()
}
this._element.parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', () => {