Skip to content

[Bug]: New instance of Cloudflare Turnstile added to form on scroll #33

@karpadiem

Description

@karpadiem

What happened?

On a rather long registration form, every time a user scrolls down to the bottom of the page, a new instance of the turnstile is added.

Image Image Image

Each time a new one is loaded, the following is added to the log:

Image

How to reproduce the bug

Seems like maybe there is some livewire interaction that might be causing the turnstile to reload?

Form code:

Turnstile::make('captcha')
    ->theme('auto') // accepts light, dark, auto
    ->language('en-US') // see below
    ->size('normal') // accepts normal, compact
    //hide when environment is development or local
    ->hidden(fn () => app()->environment(['local', 'development', 'test', 'testing'])),

Package Version

v2.4.0

PHP Version

8.4

Laravel Version

11.46.0

Which operating systems does with happen with?

macOS

Notes

Filament v3.3.39

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions