From af870f90eccc0fb04207880101eb6ae4e16f435b Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Mon, 18 Jul 2022 15:37:35 +0200 Subject: [PATCH] chore(CommandPalette): remove timeout on query clear --- src/runtime/components/navigation/CommandPalette.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/runtime/components/navigation/CommandPalette.vue b/src/runtime/components/navigation/CommandPalette.vue index a8210084..b28069f6 100644 --- a/src/runtime/components/navigation/CommandPalette.vue +++ b/src/runtime/components/navigation/CommandPalette.vue @@ -141,9 +141,7 @@ function onSelect (option: Command) { // waiting for modal to be closed if (!option.prevent) { - setTimeout(() => { - query.value = '' - }, 300) + query.value = '' } }