Skip to content

Commit 7e51eb0

Browse files
committed
Revert changes to minimize diff
1 parent 50f40f8 commit 7e51eb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ts/treeview.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)