From 9cee8d1548e7b6e37b46e02bbfe794c66c767e93 Mon Sep 17 00:00:00 2001 From: Timothy <54037832+hel-lo7@users.noreply.github.com> Date: Sun, 4 Aug 2024 00:36:16 -0700 Subject: [PATCH] Add onchange event listener for the link authentication element --- src/lib/LinkAuthenticationElement.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/LinkAuthenticationElement.svelte b/src/lib/LinkAuthenticationElement.svelte index 39d1a2e..d0224c4 100644 --- a/src/lib/LinkAuthenticationElement.svelte +++ b/src/lib/LinkAuthenticationElement.svelte @@ -19,6 +19,9 @@ onMount(() => { const options = defaultValues ? { defaultValues } : {} element = mount(wrapper, 'linkAuthentication', elements, dispatch, options) + element.on('change', (event) => { + dispatch('change', event) + }) return () => element.destroy() })