Skip to content

Commit

Permalink
Fix multiple checkboxes submit
Browse files Browse the repository at this point in the history
  • Loading branch information
andreytroeglazov committed Jul 11, 2024
1 parent a125f9e commit 2663002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IHP/static/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ window.submitForm = function (form, possibleClickedButton) {
// of full urls like `http://example.com/Projects`
var url = new URL(formAction, document.baseURI);
for (var pair of formData.entries()) {
url.searchParams.set(pair[0], pair[1]);
url.searchParams.append(pair[0], pair[1]);
}

request.open(formMethod, url.toString(), true);
Expand Down

0 comments on commit 2663002

Please sign in to comment.