From 3ac53de6224eb9216d014b79ec3bba1b414ce05d Mon Sep 17 00:00:00 2001 From: mostafahesham-dev <60550928+mostafahesham-dev@users.noreply.github.com> Date: Sat, 12 Jun 2021 03:03:03 +0200 Subject: [PATCH] fix Closing parent in Treeview closes descendants, but "arrow" icon is not changed properly (#3647) * fix #3643 * added extra line * remove extra space --- build/js/Treeview.js | 1 + 1 file changed, 1 insertion(+) diff --git a/build/js/Treeview.js b/build/js/Treeview.js index 05fa1a8ed..53cefa4a4 100644 --- a/build/js/Treeview.js +++ b/build/js/Treeview.js @@ -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()