Skip to content

Commit 7822770

Browse files
authored
remove obsolete data attr.
1 parent add373d commit 7822770

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

resources/views/components/turnstile.blade.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<x-dynamic-component :component="$fieldWrapperView" :field="$turnstile">
1111

1212
<div wire:ignore
13+
x-load-js="['https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onTurnstileLoad']"
1314
x-data="{
1415
state: $wire.entangle('{{ $statePath }}').defer,
15-
widgetId: null
16+
widgetId: null,
1617
}"
17-
x-load-js="['https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onTurnstileLoad']"
1818
x-init="(() => {
1919
let options = {
2020
sitekey: '{{config('turnstile.turnstile_site_key')}}',
@@ -63,12 +63,6 @@
6363
}
6464
})()"
6565
>
66-
<div data-sitekey="{{config('turnstile.turnstile_site_key')}}"
67-
data-theme="{{ $theme }}"
68-
data-language="{{ $language }}"
69-
data-size="{{ $size }}"
70-
x-ref="turnstile"
71-
>
72-
</div>
66+
<div x-ref="turnstile"></div>
7367
</div>
7468
</x-dynamic-component>

0 commit comments

Comments
 (0)