Skip to content

Commit

Permalink
Add onchange event listener for the link authentication element
Browse files Browse the repository at this point in the history
  • Loading branch information
hel-lo7 authored and joshnuss committed Aug 4, 2024
1 parent e0783ea commit 9cee8d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/LinkAuthenticationElement.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand Down

0 comments on commit 9cee8d1

Please sign in to comment.