Skip to content

Commit

Permalink
Improve polyfill handleOpen ordering in ha-md-dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
wendevlin committed Sep 16, 2024
1 parent 2678c8e commit 82c2144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ha-md-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class HaMdDialog extends MdDialog {
return;
}

this._polyfillDialogRegistered = true;
this._loadPolyfillStylesheet("/static/polyfills/dialog-polyfill.css");
const dialog = this.shadowRoot?.querySelector(
"dialog"
Expand All @@ -54,7 +55,6 @@ export class HaMdDialog extends MdDialog {
dialogPolyfill.default.registerDialog(dialog);
this.removeEventListener("open", this._handleOpen);

this._polyfillDialogRegistered = true;
this.show();
}

Expand Down

0 comments on commit 82c2144

Please sign in to comment.