Skip to content

Commit

Permalink
fix(alert): regression fix to restore calciteAlertBeforeOpen and `c…
Browse files Browse the repository at this point in the history
…alciteAlertOpen` event emitting (#7767)

**Related Issue:** #7757

## Summary

Regression fix to restore `calciteAlertBeforeOpen` and
`calciteAlertOpen` event emitting.
  • Loading branch information
Elijbet authored Sep 19, 2023
1 parent b89ccbb commit 6bbae35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/calcite-components/src/components/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,17 @@ export class Alert implements OpenCloseComponent, LoadableComponent, T9nComponen
connectMessages(this);
const open = this.open;
if (open && !this.queued) {
this.openHandler();
this.calciteInternalAlertRegister.emit();
onToggleOpenCloseComponent(this);
}
}

async componentWillLoad(): Promise<void> {
setUpLoadableComponent(this);
this.requestedIcon = setRequestedIcon(KindIcons, this.icon, this.kind);
await setUpMessages(this);
if (this.open) {
onToggleOpenCloseComponent(this);
}
}

componentDidLoad(): void {
Expand Down

0 comments on commit 6bbae35

Please sign in to comment.