Dispatching clear event

This commit is contained in:
Rafael Dessotti 2021-08-31 12:10:55 -03:00
commit 87cbfdc1ec

View file

@ -150,6 +150,7 @@
dispatch("select", { selectedId, selectedIndex, selectedItem }); dispatch("select", { selectedId, selectedIndex, selectedItem });
} else { } else {
clear(); clear();
dispatch("clear");
} }
$: ariaLabel = $$props["aria-label"] || "Choose an item"; $: ariaLabel = $$props["aria-label"] || "Choose an item";
$: menuId = `menu-${id}`; $: menuId = `menu-${id}`;