mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
emit openChange when toggling (#4237)
This commit is contained in:
parent
f3ee9b016a
commit
94b1a7743d
@ -29,5 +29,6 @@ export class OrgSwitcherComponent {
|
|||||||
protected toggle(event?: MouseEvent) {
|
protected toggle(event?: MouseEvent) {
|
||||||
event?.stopPropagation();
|
event?.stopPropagation();
|
||||||
this.open = !this.open;
|
this.open = !this.open;
|
||||||
|
this.openChange.emit(this.open);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,7 @@ export class NavGroupComponent extends NavBaseComponent implements AfterContentI
|
|||||||
protected toggle(event?: MouseEvent) {
|
protected toggle(event?: MouseEvent) {
|
||||||
event?.stopPropagation();
|
event?.stopPropagation();
|
||||||
this.open = !this.open;
|
this.open = !this.open;
|
||||||
|
this.openChange.emit(this.open);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user