Skip to content

Commit

Permalink
docs: properly handle close event in simple modal story (#3004) (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardmarcinco authored Sep 30, 2024
1 parent 6f06496 commit 2e5af93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/modal.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const SimpleTemplate = (args) => ({
props: args,
template: `
<button #trigger cdsButton="primary" (click)="open = true">Open</button>
<cds-modal [open]="open" [trigger]="trigger" (overlaySelected)="open = false">
<cds-modal [open]="open" [trigger]="trigger" (overlaySelected)="open = false" (close)="open = false">
<cds-modal-header (closeSelect)="open = false" [showCloseButton]="showCloseButton">
<p class="cds--modal-header__label cds--type-delta">No service required</p>
<p class="cds--modal-header__heading cds--type-beta">A very simple modal</p>
Expand Down

0 comments on commit 2e5af93

Please sign in to comment.