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

This is not compatible with the turbo #1378

Open
aivils opened this issue Jan 29, 2024 · 0 comments
Open

This is not compatible with the turbo #1378

aivils opened this issue Jan 29, 2024 · 0 comments

Comments

@aivils
Copy link

aivils commented Jan 29, 2024

The javascript supplied with the rails framework will clear form errors.
You have to build the form with the turbo off or all the errors will disappear.

Sample:

= semantic_form_for @profile, data: {turbo: false} do |f|

where data: {turbo: false} is crucial. Please mention this somewhere in the README.

Malicious javascript is:

import "@hotwired/turbo-rails"
import "controllers"

This is from a freshly generated rails project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant