Skip to content

Commit

Permalink
fix(component): don't override user's callback
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Sep 19, 2024
1 parent aac9e95 commit ffe9ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/NuxtTurnstile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ onMounted(async () => {
id = await render(el.value, {
sitekey: props.siteKey || config.siteKey,
...props.options,
callback: (token: string) => emit('update:modelValue', token),
...props.options,
})
interval = setInterval(reset, props.resetInterval)
Expand Down

0 comments on commit ffe9ab2

Please sign in to comment.