mirror of https://github.com/ColorlibHQ/AdminLTE
Merge pull request #3786 from Shidersz/fix-treeview-menu
Fix childs behaviour when closing a parent treeview menupull/3898/head
commit
f03e6f99c9
|
@ -80,11 +80,10 @@ class Treeview {
|
||||||
const collapsedEvent = $.Event(EVENT_COLLAPSED)
|
const collapsedEvent = $.Event(EVENT_COLLAPSED)
|
||||||
|
|
||||||
parentLi.removeClass(`${CLASS_NAME_IS_OPENING} ${CLASS_NAME_OPEN}`)
|
parentLi.removeClass(`${CLASS_NAME_IS_OPENING} ${CLASS_NAME_OPEN}`)
|
||||||
parentLi.find(SELECTOR_LI).removeClass(`${CLASS_NAME_IS_OPENING} ${CLASS_NAME_OPEN}`)
|
|
||||||
treeviewMenu.stop().slideUp(this._config.animationSpeed, () => {
|
treeviewMenu.stop().slideUp(this._config.animationSpeed, () => {
|
||||||
$(this._element).trigger(collapsedEvent)
|
$(this._element).trigger(collapsedEvent)
|
||||||
treeviewMenu.find(`${SELECTOR_OPEN} > ${SELECTOR_TREEVIEW_MENU}`).slideUp()
|
treeviewMenu.find(`${SELECTOR_OPEN} > ${SELECTOR_TREEVIEW_MENU}`).slideUp()
|
||||||
treeviewMenu.find(SELECTOR_OPEN).removeClass(CLASS_NAME_OPEN)
|
treeviewMenu.find(SELECTOR_OPEN).removeClass(`${CLASS_NAME_IS_OPENING} ${CLASS_NAME_OPEN}`)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue