Skip to content

Commit c1e1496

Browse files
committed
fix(modals): visibleChange output
1 parent d66468a commit c1e1496

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/views/notifications/modals/modals.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ <h5 cModalTitle>Modal title</h5>
6060
</c-card-header>
6161
<c-card-body>
6262
<p class="text-medium-emphasis small">
63-
If you don’t provide an <code>(modalChange)</code> handler to the Modal component, your
63+
If you don’t provide an <code>(visibleChange)</code> handler to the Modal component, your
6464
modal will behave as though the backdrop is static, meaning it will not close when
6565
clicking outside it. Click the button below to try it.
6666
</p>
@@ -266,7 +266,7 @@ <h5 cModalTitle>Modal title</h5>
266266

267267
<ng-template #liveDemo>
268268
<button (click)="toggleLiveDemo()" cButton>Launch demo modal</button>
269-
<c-modal id="liveDemoModal" [visible]="liveDemoVisible" (modalChange)="handleLiveDemoChange($event)">
269+
<c-modal id="liveDemoModal" [visible]="liveDemoVisible" (visibleChange)="handleLiveDemoChange($event)">
270270
<c-modal-header>
271271
<h5 cModalTitle>Modal title</h5>
272272
<button (click)="toggleLiveDemo()" cButtonClose></button>

src/app/views/notifications/modals/modals.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ModalsComponent {
1515
this.liveDemoVisible = !this.liveDemoVisible;
1616
}
1717

18-
handleLiveDemoChange(event: any) {
19-
this.liveDemoVisible = event.visible
18+
handleLiveDemoChange(event: boolean) {
19+
this.liveDemoVisible = event;
2020
}
2121
}

0 commit comments

Comments
 (0)