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

Add support for data-turbo-action to link_to #636

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

ondrej-zadnik
Copy link
Contributor

As I described in hotwired/turbo-rails#359 link_to ignores data-turbo-action in combination with data-turbo-method.

Original error was found in convertLinkWithMethodClickToFormSubmission but it was overwritten by #631. Unfortunately the data-turbo-action for link_to is still missing.

I added the data-turbo-action setting to FormLinkInterceptor in the same way as data-turbo-confirm and added a test for it.

@ondrej-zadnik ondrej-zadnik force-pushed the support-data-action-for-link-to branch from 67c5ac7 to 63546ad Compare July 19, 2022 19:03
@ondrej-zadnik
Copy link
Contributor Author

@seanpdoyle @dhh Do you think we could add this to the turbo release 7.2? It would be helpful because now we have to use button_to everywhere and it may not fit in all situations.

@dhh
Copy link
Member

dhh commented Aug 1, 2022

Yes. Please do rebase and we'll get it in.

@ondrej-zadnik ondrej-zadnik force-pushed the support-data-action-for-link-to branch from dbfadab to 9835486 Compare August 1, 2022 18:58
@ondrej-zadnik
Copy link
Contributor Author

@dhh rebased

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

Successfully merging this pull request may close these issues.

None yet

3 participants