From b694a106096fcbdcc43fb7d650c0e0851a532bfe Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 16 Dec 2024 02:29:06 +0100 Subject: [PATCH] Lib: Dispatch CustomEvent instead of Event for DropdownChange --- src/lib/components/Dropdown.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/Dropdown.svelte b/src/lib/components/Dropdown.svelte index 20c962d..a7eb74f 100644 --- a/src/lib/components/Dropdown.svelte +++ b/src/lib/components/Dropdown.svelte @@ -76,7 +76,7 @@ // Just list this so SvelteKit picks it up as dependency input_variable; - if (input) input.dispatchEvent(new Event("DropdownChange")); + if (input) input.dispatchEvent(new CustomEvent("DropdownChange")); });