From 3b423a2c592ef2f78cbe6a20b7fb205b710d60a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 6 Feb 2022 14:44:07 +0100 Subject: [PATCH] [ui] only request options when selector focused --- webui/src/components/utils/Selector.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webui/src/components/utils/Selector.svelte b/webui/src/components/utils/Selector.svelte index 17f62df..cc636a1 100644 --- a/webui/src/components/utils/Selector.svelte +++ b/webui/src/components/utils/Selector.svelte @@ -130,8 +130,10 @@ } }, 200); $: { - updateOptions(inputValue); - addressToLabels = {}; + if (inputFocused) { + updateOptions(inputValue); + addressToLabels = {}; + } } let addressToLabels: { [key: string]: string[] } = {};