Skip to content

Commit

Permalink
Default dropdown to collapsed class
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Sep 20, 2024
1 parent 52d6e32 commit b344b81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/gui/element/Dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class Dropdown<T> {
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()
Expand Down

0 comments on commit b344b81

Please sign in to comment.