mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
remove log/eslint
This commit is contained in:
@@ -104,7 +104,6 @@ export class SubmenuController implements ReactiveController {
|
||||
|
||||
// Missing slot
|
||||
if (!submenuSlot) {
|
||||
console.error('Cannot activate a submenu if no corresponding menuitem can be found.', this);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -137,8 +136,8 @@ export class SubmenuController implements ReactiveController {
|
||||
} else {
|
||||
this.enableSubmenu(false);
|
||||
this.host.updateComplete.then(() => {
|
||||
if (menuItems![0] instanceof HTMLElement) {
|
||||
menuItems![0].focus();
|
||||
if (menuItems[0] instanceof HTMLElement) {
|
||||
menuItems[0].focus();
|
||||
}
|
||||
});
|
||||
this.host.requestUpdate();
|
||||
|
||||
Reference in New Issue
Block a user