Skip to content

Commit

Permalink
docs(cdk/overlay): keep state in sync in example
Browse files Browse the repository at this point in the history
Updates the overlay example to ensure that the state of the `isOpen` flag reflects the state of the overlay.

Fixes angular#30185.
  • Loading branch information
crisbeto committed Dec 26, 2024
1 parent a6a70f6 commit 94cc9a8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
cdkConnectedOverlay
[cdkConnectedOverlayOrigin]="trigger"
[cdkConnectedOverlayOpen]="isOpen"
(detach)="isOpen = false"
>
<ul class="example-list">
<li>Item 1</li>
Expand Down

0 comments on commit 94cc9a8

Please sign in to comment.