From 70163b36f8d1b5b9632bceb5d31f57fac653ef16 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Tue, 14 Sep 2021 09:56:32 -0700 Subject: [PATCH] fix(combo-box): remove redundant clear events #817 (#818) Fixes #817 --- src/ComboBox/ComboBox.svelte | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ComboBox/ComboBox.svelte b/src/ComboBox/ComboBox.svelte index 47c41c36..162358c5 100644 --- a/src/ComboBox/ComboBox.svelte +++ b/src/ComboBox/ComboBox.svelte @@ -152,9 +152,6 @@ $: if (selectedIndex > -1) { selectedId = items[selectedIndex].id; dispatch("select", { selectedId, selectedIndex, selectedItem }); - } else { - clear(); - dispatch("clear"); } $: ariaLabel = $$props["aria-label"] || "Choose an item"; $: menuId = `menu-${id}`;