fix Closing parent in Treeview closes descendants, but "arrow" icon is not changed properly (#3647)

* fix #3643

* added extra line

* remove extra space
This commit is contained in:
mostafahesham-dev
2021-06-12 03:03:03 +02:00
committed by GitHub
parent 6b81679a21
commit 3ac53de622

View File

@@ -80,6 +80,7 @@ class Treeview {
const collapsedEvent = $.Event(EVENT_COLLAPSED)
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, () => {
$(this._element).trigger(collapsedEvent)
treeviewMenu.find(`${SELECTOR_OPEN} > ${SELECTOR_TREEVIEW_MENU}`).slideUp()