[ui] only request options when selector focused

feat/vaults
Tomáš Mládek 2022-02-06 14:44:07 +01:00
parent a92d30a521
commit 3b423a2c59
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 4 additions and 2 deletions

View File

@ -130,9 +130,11 @@
} }
}, 200); }, 200);
$: { $: {
if (inputFocused) {
updateOptions(inputValue); updateOptions(inputValue);
addressToLabels = {}; addressToLabels = {};
} }
}
let addressToLabels: { [key: string]: string[] } = {}; let addressToLabels: { [key: string]: string[] } = {};
function onAddressResolved(address: string, ev: CustomEvent<string[]>) { function onAddressResolved(address: string, ev: CustomEvent<string[]>) {