Skip to content

Commit

Permalink
docs: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Dec 18, 2023
1 parent 2da52a0 commit 985b16d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/notification/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ export class SbbNotificationElement extends LitElement {
this._notificationElement = this.shadowRoot.querySelector(
'.sbb-notification__wrapper',
) as HTMLElement;
// We need to wait for the component's `updateComplete` in order to set the correct
// height to the notification element.
await this.updateComplete;
this._setNotificationHeight();
this._open();
Expand Down

0 comments on commit 985b16d

Please sign in to comment.