Skip to content

Commit

Permalink
Fix flickering toast (#20287)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Mar 30, 2024
1 parent e8dc61e commit f13dcb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/notification-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class NotificationManager extends LitElement {
@query("ha-toast") private _toast!: HaToast | undefined;

public async showDialog(parameters: ShowToastParams) {
if (this._parameters) {
if (this._parameters && this._parameters.message !== parameters.message) {
this._parameters = undefined;
await this.updateComplete;
}
Expand Down

0 comments on commit f13dcb4

Please sign in to comment.