Skip to content

turbo: true doesn't work with turbo-refresh-method=morph #456

@pedantic-git

Description

@pedantic-git

Hello! This gem is an absolute lifesaver - I was able to get recaptcha on my site quickly once the spammers found it.

I noticed one thing - the turbo: true flag (I'm using it on recaptcha_v3) doesn't work when turbo-refresh-method is set to morph.

The reason, as far as I can tell, is that the script tag is just left intact within the DOM, since it doesn't change and consequently it never knows to execute its onload handler.

I can think of a few ways to fix this, but none of them are elegant, so I thought I'd start a discussion here first. I'm very happy to contribute what I can!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions