File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -478,4 +478,16 @@ onMounted(() => {
478478 border-color : #333 transparent transparent transparent ;
479479}
480480
481+ /* The Turnstile widget is executed programmatically via execution: 'execute'.
482+ The container must remain in the DOM (removing it prevents widget rendering)
483+ but should not affect page layout or be visible. */
484+ .turnstile-container {
485+ position : absolute ;
486+ width : 0 ;
487+ height : 0 ;
488+ overflow : hidden ;
489+ visibility : hidden ;
490+ pointer-events : none ;
491+ }
492+
481493 </style >
Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ export function useTurnstile() {
8787 if ( ! widgetId . value ) {
8888 widgetId . value = turnstile . render ( el , {
8989 sitekey : siteKey ,
90- size : 'invisible' ,
9190 action : 'pack' ,
9291 execution : 'execute' ,
9392 callback : ( token : string ) => {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export interface TurnstileGlobal {
1818
1919export interface TurnstileRenderOptions {
2020 sitekey : string ;
21- size ?: 'normal' | 'compact' | 'invisible ' ;
21+ size ?: 'normal' | 'compact' | 'flexible ' ;
2222 // `action` is bound into the issued token and verified server-side, so a
2323 // token minted for /api/pack can't be replayed at a future endpoint that
2424 // expects a different action.
You can’t perform that action at this time.
0 commit comments