Skip to content

Commit

Permalink
fix: properly handle close event in simple modal story (carbon-design…
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardmarcinco committed Sep 28, 2024
1 parent 6f06496 commit 9aa8fe9
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 9aa8fe9

Please sign in to comment.