Revert changes to minimize diff

pull/5888/head
Diego Smania 2025-08-01 19:57:34 -03:00
parent 50f40f8191
commit 7e51eb06aa
1 changed files with 1 additions and 2 deletions

View File

@ -76,7 +76,6 @@ class Treeview {
this._element.classList.add(CLASS_NAME_MENU_OPEN)
const childElement = this._element?.querySelector(SELECTOR_TREEVIEW_MENU) as HTMLElement | undefined
if (childElement) {
slideDown(childElement, this._config.animationSpeed)
}
@ -86,10 +85,10 @@ class Treeview {
close(): void {
const event = new Event(EVENT_COLLAPSED)
const childElement = this._element?.querySelector(SELECTOR_TREEVIEW_MENU) as HTMLElement | undefined
this._element.classList.remove(CLASS_NAME_MENU_OPEN)
const childElement = this._element?.querySelector(SELECTOR_TREEVIEW_MENU) as HTMLElement | undefined
if (childElement) {
slideUp(childElement, this._config.animationSpeed)
}