From b344b8138528bfdf6b57b113f5ded0018fb42753 Mon Sep 17 00:00:00 2001 From: tillvit Date: Thu, 19 Sep 2024 22:43:13 -0400 Subject: [PATCH] Default dropdown to collapsed class --- app/src/gui/element/Dropdown.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/gui/element/Dropdown.ts b/app/src/gui/element/Dropdown.ts index 3a6a56ca..abe24f25 100644 --- a/app/src/gui/element/Dropdown.ts +++ b/app/src/gui/element/Dropdown.ts @@ -55,6 +55,7 @@ export class Dropdown { if (!target.closest(".dropdown") || target.closest(".dropdown") != view) itemList.style.height = "" }) + itemList.classList.add("collapsed") this.view.appendChild(itemDisplay) this.view.appendChild(itemList) this.setSelected()