Skip to content

Commit

Permalink
fix(dialog): use default value for "resolveTransitionPromise" for ope…
Browse files Browse the repository at this point in the history
…n by default dialogs
  • Loading branch information
Westbrook committed Jun 2, 2022
1 parent 95d1d7c commit 7317a3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/dialog/src/DialogWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {

private transitionPromise = Promise.resolve();

private resolveTransitionPromise!: () => void;
private resolveTransitionPromise = (): void => {
return;
};

@property({ type: Boolean })
public underlay = false;
Expand Down

0 comments on commit 7317a3f

Please sign in to comment.