mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 21:06:34 +00:00
Clear old src when disconnected so we can't fetch it with the wrong t… (#11528)
This commit is contained in:
parent
5fde6e659d
commit
4e55460799
@ -106,6 +106,9 @@ export class HuiImage extends LitElement {
|
||||
} else if (!this.hass!.connected) {
|
||||
this._stopUpdateCameraInterval();
|
||||
this._stopIntersectionObserver();
|
||||
this._loadState = LoadState.Loading;
|
||||
this._cameraImageSrc = undefined;
|
||||
this._loadedImageSrc = undefined;
|
||||
}
|
||||
}
|
||||
if (changedProps.has("_imageVisible")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user