Fix add device dialog (#18591)

This commit is contained in:
Bram Kragten 2023-11-10 08:27:02 +01:00 committed by GitHub
parent 19c1973ec1
commit cd4f3a091b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,12 +139,13 @@ class AddIntegrationDialog extends LitElement {
}
if (this._initialFilter !== undefined && this._filter === "") {
this._initialFilter = undefined;
this._filter = "";
this._filter = undefined;
this._width = undefined;
this._height = undefined;
} else if (
this.hasUpdated &&
changedProps.has("_filter") &&
!changedProps.has("_open") &&
(!this._width || !this._height)
) {
// Store the width and height so that when we search, box doesn't jump