From ead237f941fa0072baa8883acfd2c3d34a10e7c7 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Thu, 28 Oct 2021 13:34:59 +0800 Subject: [PATCH] leave more time to update_value() before hide --- src/Name.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Name.svelte b/src/Name.svelte index 57f8c6f..7a5e0a9 100644 --- a/src/Name.svelte +++ b/src/Name.svelte @@ -127,7 +127,7 @@ {should_hide=false;may_complete()}} on:focus={() => should_hide=false} - on:blur={() => {setTimeout(() => should_hide=true, 100);update_value()}} + on:blur={() => {setTimeout(() => should_hide=true, 500);update_value()}} on:keydown={select_by_key} />