From 94cc9a8abd121ece1fc79ce37472ef7996f700ce Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 26 Dec 2024 18:13:37 +0200 Subject: [PATCH] docs(cdk/overlay): keep state in sync in example Updates the overlay example to ensure that the state of the `isOpen` flag reflects the state of the overlay. Fixes #30185. --- .../cdk/overlay/cdk-overlay-basic/cdk-overlay-basic-example.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components-examples/cdk/overlay/cdk-overlay-basic/cdk-overlay-basic-example.html b/src/components-examples/cdk/overlay/cdk-overlay-basic/cdk-overlay-basic-example.html index 5ece34c61897..37fc8d128e14 100644 --- a/src/components-examples/cdk/overlay/cdk-overlay-basic/cdk-overlay-basic-example.html +++ b/src/components-examples/cdk/overlay/cdk-overlay-basic/cdk-overlay-basic-example.html @@ -8,6 +8,7 @@ cdkConnectedOverlay [cdkConnectedOverlayOrigin]="trigger" [cdkConnectedOverlayOpen]="isOpen" + (detach)="isOpen = false" >