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

Read [data-turbo-action] during Form Submissions #409

Merged
merged 3 commits into from
Nov 9, 2021

Conversation

seanpdoyle
Copy link
Contributor

Closes hotwired/turbo-ios#44
Follow-up to #231


This commit follows-up #231, which added [data-turbo-action]
support for idempotent form submissions to maintain parity with
<a>-initiated Visits.

These changes re-use the existent Navigator.getActionForFormSubmission
function to determine the value for the VisitOptions.action options.

@seanpdoyle seanpdoyle force-pushed the form-turbo-action branch 2 times, most recently from c9de532 to 285fbbb Compare September 27, 2021 22:35
@dhh dhh requested a review from jayohms September 28, 2021 00:31
@seanpdoyle seanpdoyle force-pushed the form-turbo-action branch 2 times, most recently from 4dd165b to 546f113 Compare September 29, 2021 00:15
In preparation for `<form method="post">`-driven navigations, this
commit removes unnecessary `[method]` attributes, and renames `[id]`
attributes to communicate the verb to the test cases.
Closes hotwired/turbo-ios#44
Follow-up to hotwired#231

---

This commit follows-up [hotwired#231][], which added `[data-turbo-action]`
support for idempotent form submissions to maintain parity with
`<a>`-initiated Visits.

These changes re-use the existent `Navigator.getActionForFormSubmission`
function to determine the value for the `VisitOptions.action` options.

[hotwired#231]: hotwired#231
@olliekav
Copy link

olliekav commented Oct 6, 2021

Any idea when this could be reviewed/merged so I'm not pinning to a forked branch? Thanks! 😄

@dhh
Copy link
Member

dhh commented Oct 6, 2021

Pinning to a forked branch is fine. Did a big push to get Turbo 7 out the door. Probably will be a little while until there's another push for Turbo 7.1.

@olliekav
Copy link

olliekav commented Oct 6, 2021

Pinning to a forked branch is fine. Did a big push to get Turbo 7 out the door. Probably will be a little while until there's another push for Turbo 7.1.

OK cool, thanks for the update.

@dhh
Copy link
Member

dhh commented Nov 9, 2021

Seems like we've already picked up this fix through one of the other PRs. But I'll merge for the tests!

@dhh dhh merged commit dbd1e9b into hotwired:main Nov 9, 2021
@seanpdoyle seanpdoyle deleted the form-turbo-action branch November 9, 2021 13:35
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.

Handling delete routes
3 participants