mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
EgwMenuShoelace bugfixes
- Fix menu does not do action - Fix menus accumulate in DOM
This commit is contained in:
parent
5770484723
commit
ba3aa1c4b5
@ -103,6 +103,9 @@ export class EgwMenuShoelace extends LitElement
|
||||
public hide()
|
||||
{
|
||||
this.popup.active = false;
|
||||
|
||||
// egw_menu always creates a new menu
|
||||
this.remove();
|
||||
}
|
||||
|
||||
handleSelect(event)
|
||||
@ -115,7 +118,7 @@ export class EgwMenuShoelace extends LitElement
|
||||
if(event.detail.item.value)
|
||||
{
|
||||
const item = <egwMenuItem>event.detail.item.value;
|
||||
if(item.checkbox || typeof item.checked !== "undefined")
|
||||
if(item.checkbox)
|
||||
{
|
||||
item.checked = event.detail.item.checked;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user