Skip to content

Commit

Permalink
docs(cdk/overlay): keep state in sync in example (#30237)
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 #30185.
  • Loading branch information
crisbeto authored Jan 3, 2025
1 parent 5c75bbe commit 8ae1431
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 8ae1431

Please sign in to comment.