File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ class Treeview {
7676 this . _element . classList . add ( CLASS_NAME_MENU_OPEN )
7777
7878 const childElement = this . _element ?. querySelector ( SELECTOR_TREEVIEW_MENU ) as HTMLElement | undefined
79-
8079 if ( childElement ) {
8180 slideDown ( childElement , this . _config . animationSpeed )
8281 }
@@ -86,10 +85,10 @@ class Treeview {
8685
8786 close ( ) : void {
8887 const event = new Event ( EVENT_COLLAPSED )
89- const childElement = this . _element ?. querySelector ( SELECTOR_TREEVIEW_MENU ) as HTMLElement | undefined
9088
9189 this . _element . classList . remove ( CLASS_NAME_MENU_OPEN )
9290
91+ const childElement = this . _element ?. querySelector ( SELECTOR_TREEVIEW_MENU ) as HTMLElement | undefined
9392 if ( childElement ) {
9493 slideUp ( childElement , this . _config . animationSpeed )
9594 }
You can’t perform that action at this time.
0 commit comments