We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0701a24 commit c1ca5c0Copy full SHA for c1ca5c0
src/xiaomi-vacuum-map-card.ts
@@ -828,6 +828,7 @@ export class XiaomiVacuumMapCard extends LitElement {
828
private _isInEditor(): boolean {
829
function isInEditor(e: Element): boolean {
830
return (e.parentElement?.tagName?.toLowerCase() === "hui-card" && "preview" in (e.parentElement?.attributes ?? []))
831
+ || e.parentElement?.tagName?.toLowerCase() === "hui-card-preview"
832
|| e.parentElement != null && isInEditor(e.parentElement)
833
|| e.parentNode?.toString() == "[object ShadowRoot]" && isInEditor((e.getRootNode() as ShadowRoot).host);
834
}
0 commit comments