Lib: Dispatch CustomEvent instead of Event for DropdownChange

This commit is contained in:
2024-12-23 16:15:27 +01:00
parent 72154656fb
commit c1f9c6aa12
+1 -1
View File
@@ -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"));
});
</script>