Skip to content

Commit

Permalink
Update compile turbo js
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Jun 21, 2023
1 parent 37a7cd0 commit 92ad1f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/assets/javascripts/turbo.js
Original file line number Diff line number Diff line change
Expand Up @@ -4177,7 +4177,9 @@ function determineFetchMethod(submitter, body, form) {

function determineFormMethod(submitter) {
if (submitter instanceof HTMLButtonElement || submitter instanceof HTMLInputElement) {
if (submitter.hasAttribute("formmethod")) {
if (submitter.name === "_method") {
return submitter.value;
} else if (submitter.hasAttribute("formmethod")) {
return submitter.formMethod;
} else {
return null;
Expand Down
Loading

0 comments on commit 92ad1f4

Please sign in to comment.