From 39429d88a73771065dbf55dffc6a2d0e504d40ec Mon Sep 17 00:00:00 2001 From: Diego Smania Date: Mon, 14 Jun 2021 14:34:04 -0300 Subject: [PATCH] [Treeview Menu]: Fix childs behaviour when closing parent treeview menu. --- build/js/Treeview.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/js/Treeview.js b/build/js/Treeview.js index 53cefa4a4..1a1d2d8cd 100644 --- a/build/js/Treeview.js +++ b/build/js/Treeview.js @@ -80,11 +80,10 @@ 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() - treeviewMenu.find(SELECTOR_OPEN).removeClass(CLASS_NAME_OPEN) + treeviewMenu.find(SELECTOR_OPEN).removeClass(`${CLASS_NAME_IS_OPENING} ${CLASS_NAME_OPEN}`) }) }