1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

Close opened AccountSwitcher dropdown (#1228)

When a user clicks outside of an opened account switching dropdown, it should close automatically when clicking outside of the dropdown.
This commit is contained in:
Daniel James Smith 2022-01-12 17:20:19 +01:00 committed by GitHub
parent d885e3296b
commit 71c2fee574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,9 @@
<ng-template <ng-template
cdkConnectedOverlay cdkConnectedOverlay
[cdkConnectedOverlayOrigin]="trigger" [cdkConnectedOverlayOrigin]="trigger"
[cdkConnectedOverlayHasBackdrop]="true"
[cdkConnectedOverlayBackdropClass]="'cdk-overlay-transparent-backdrop'"
(backdropClick)="toggle()"
[cdkConnectedOverlayOpen]="isOpen" [cdkConnectedOverlayOpen]="isOpen"
cdkConnectedOverlayMinWidth="250px" cdkConnectedOverlayMinWidth="250px"
> >