Skip to content

Commit

Permalink
fix: move ref to the back of declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Dec 4, 2023
1 parent 0713997 commit 9a56187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,17 +448,17 @@ export class SbbDialog extends LitElement {
return html`
<div class="sbb-dialog__container">
<div
${ref((dialogRef) => (this._dialog = dialogRef as HTMLDivElement))}
@animationend=${(event: AnimationEvent) => this._onDialogAnimationEnd(event)}
class="sbb-dialog"
id=${this._dialogId}
${ref((dialogRef) => (this._dialog = dialogRef as HTMLDivElement))}
>
<div
@click=${(event: Event) => this._closeOnSbbDialogCloseClick(event)}
class="sbb-dialog__wrapper"
${ref(
(dialogWrapperRef) => (this._dialogWrapperElement = dialogWrapperRef as HTMLElement),
)}
class="sbb-dialog__wrapper"
>
${dialogHeader}
<div
Expand Down

0 comments on commit 9a56187

Please sign in to comment.