fix(combo-box): remove redundant clear events #817 (#818)

Fixes #817
This commit is contained in:
Eric Liu 2021-09-14 09:56:32 -07:00 committed by GitHub
commit 70163b36f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,9 +152,6 @@
$: if (selectedIndex > -1) { $: if (selectedIndex > -1) {
selectedId = items[selectedIndex].id; selectedId = items[selectedIndex].id;
dispatch("select", { selectedId, selectedIndex, selectedItem }); dispatch("select", { selectedId, selectedIndex, selectedItem });
} else {
clear();
dispatch("clear");
} }
$: ariaLabel = $$props["aria-label"] || "Choose an item"; $: ariaLabel = $$props["aria-label"] || "Choose an item";
$: menuId = `menu-${id}`; $: menuId = `menu-${id}`;