Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data-turbo="false" not working with forms #26

Closed
danjac opened this issue Dec 23, 2020 · 3 comments
Closed

data-turbo="false" not working with forms #26

danjac opened this issue Dec 23, 2020 · 3 comments

Comments

@danjac
Copy link

danjac commented Dec 23, 2020

The documentation suggests this works with links only, but it appears that data-turbo="false" does not work with forms:

<form method="post" action="..." data-turbo="false">...

When testing it appears forms are submitted through Turbo regardless of this attribute.

https://turbo.hotwire.dev/handbook/drive#disabling-turbo-drive-on-specific-links

Is there a good workaround for this? I need to be able to disable Turbo for some specific forms.

@seanpdoyle
Copy link
Contributor

Is this issue resolved by #3?

@danjac
Copy link
Author

danjac commented Dec 23, 2020

@seanpdoyle looks like it could be. For now I'm looking at a custom Stimulus controller to intercept form submit as a temp workaround.

@boardfish
Copy link

I believe this issue can be closed now. Use any release onward from dev-builds/latest, as #3 has now been merged.

@dhh dhh closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants