1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +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
cdkConnectedOverlay
[cdkConnectedOverlayOrigin]="trigger"
[cdkConnectedOverlayHasBackdrop]="true"
[cdkConnectedOverlayBackdropClass]="'cdk-overlay-transparent-backdrop'"
(backdropClick)="toggle()"
[cdkConnectedOverlayOpen]="isOpen"
cdkConnectedOverlayMinWidth="250px"
>