From cd4f3a091bea22718e9237c20a9f248fdc0d3af6 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Fri, 10 Nov 2023 08:27:02 +0100 Subject: [PATCH] Fix add device dialog (#18591) --- src/panels/config/integrations/dialog-add-integration.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panels/config/integrations/dialog-add-integration.ts b/src/panels/config/integrations/dialog-add-integration.ts index 62e86a5874..c8a7616edc 100644 --- a/src/panels/config/integrations/dialog-add-integration.ts +++ b/src/panels/config/integrations/dialog-add-integration.ts @@ -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