kopia lustrzana https://github.com/shoelace-style/shoelace
Merge branch 'cyantree-issue-1815_fix-submenu-closing' into next
commit
8272619663
|
@ -229,6 +229,7 @@ export class SubmenuController implements ReactiveController {
|
|||
// newly opened menu.
|
||||
private enableSubmenu(delay = true) {
|
||||
if (delay) {
|
||||
window.clearTimeout(this.enableSubmenuTimer);
|
||||
this.enableSubmenuTimer = window.setTimeout(() => {
|
||||
this.setSubmenuState(true);
|
||||
}, this.submenuOpenDelay);
|
||||
|
@ -238,7 +239,7 @@ export class SubmenuController implements ReactiveController {
|
|||
}
|
||||
|
||||
private disableSubmenu() {
|
||||
clearTimeout(this.enableSubmenuTimer);
|
||||
window.clearTimeout(this.enableSubmenuTimer);
|
||||
this.setSubmenuState(false);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue