Set edit mode to false on card when disabling edit mode. (#5845)

This commit is contained in:
Bram Kragten 2020-05-13 12:05:29 +02:00 committed by GitHub
parent 2c2a1d204b
commit 7f1fb6f75f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,6 +224,9 @@ export class HUIView extends LitElement {
}); });
this._createColumns(wrappedCards); this._createColumns(wrappedCards);
} else { } else {
this._cards.forEach((card) => {
(card as LovelaceCard).editMode = false;
});
this._createColumns(this._cards); this._createColumns(this._cards);
} }
} }