Add basic list menu elements and fix alwaysToggle to only trigger if the popup is open.

This commit is contained in:
2024-05-21 12:31:25 +02:00
parent 7420945748
commit a548ed8591
5 changed files with 248 additions and 4 deletions

View File

@ -182,7 +182,7 @@ class TpPopup extends EventHelpers(Position(DomQuery(LitElement))) {
if (toggle && this.toggleEl.hasAttribute('disabled')) return;
if (toggle || this.alwaysToggle) {
if (toggle || this.alwaysToggle && this.isOpen) {
this.toggle();
}