Closed huang-julien closed 1 year ago
I noticed that too, recently. If you want feel free to submit a PR! :heart:
sure !
Waiting for fixing.
Oops for those interested here's the workaround atm,
within onBeforeUnmount
of the compoennt wrapper NuxtTurnstile
window.turnstile.remove(
str)
where str is the wrapper selector + div
ex:
onBeforeUnmount(() => {
window.turnstile.remove('#turnstile-wrapper div')
})
Turnstile remove
function either can receive the id of the widget or if it's a selector, look for the iframe of the widget within the selector
đ The bug
When changing the page, the turnstile box isn't properly removed and causing and infinite loop.
to reproduce it on the reproduction,
đ ī¸ To reproduce
https://stackblitz.com/edit/github-cuqope?file=pages%2Findex.vue,pages%2Fform.vue
đ Expected behaviour
we shouldn't have any warning log
âšī¸ Additional context
I can take it, already fixed on my project :)