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
1 changed files with 3 additions and 0 deletions

View File

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