From 88cd84a403c2a817e696a5ad19ee9e2fc89c1111 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 28 Oct 2021 23:01:40 +0800 Subject: [PATCH] Name: a better way to prevent completion list disappear before we select it --- src/Name.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Name.svelte b/src/Name.svelte index 03c1a5a..b6f11d2 100644 --- a/src/Name.svelte +++ b/src/Name.svelte @@ -128,11 +128,11 @@ {should_hide=false;may_complete()}} on:focus={() => should_hide=false} - on:blur={() => {setTimeout(() => should_hide=true, 500);update_value()}} + on:blur={() => {should_hide=true;update_value()}} on:keydown={select_by_key} /> -