From ee1e3771c8e146d6dce4488e229c81002a203407 Mon Sep 17 00:00:00 2001 From: Dongsheng <1197160272@qq.com> Date: Tue, 15 Aug 2023 21:23:40 +0800 Subject: [PATCH] fix: optional expression --- packages/ui/src/components/form/CSelect.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/form/CSelect.svelte b/packages/ui/src/components/form/CSelect.svelte index 821cb45..ef25cd4 100644 --- a/packages/ui/src/components/form/CSelect.svelte +++ b/packages/ui/src/components/form/CSelect.svelte @@ -141,7 +141,7 @@ } value = item.value focused = false - dropdown?.toggleManually(false) + if (dropdown) dropdown.toggleManually(false) } $: isItemActive = (/** @type {{ value: any; }} */ item) => {