Skip to content

Commit

Permalink
Rebuild stack card when a child card rebuilds (#19861)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts committed Apr 12, 2024
1 parent b82f112 commit b35c325
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/panels/lovelace/cards/hui-stack-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
nothing,
} from "lit";
import { property, state } from "lit/decorators";
import { fireEvent } from "../../../common/dom/fire_event";
import { LovelaceCardConfig } from "../../../data/lovelace/config/card";
import { HomeAssistant } from "../../../types";
import { createCardElement } from "../create-element/create-card-element";
Expand Down Expand Up @@ -119,6 +120,7 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
(ev) => {
ev.stopPropagation();
this._rebuildCard(element, cardConfig);
fireEvent(this, "ll-rebuild");
},
{ once: true }
);
Expand Down

0 comments on commit b35c325

Please sign in to comment.