fix: GET partial form submit ignoring multiple checkbox values (#2568)
Fixes https://github.com/denoland/fresh/issues/2567
This commit is contained in:
@@ -252,7 +252,7 @@ document.addEventListener("submit", async (e) => {
|
||||
// TODO: Looks like constructor type for URLSearchParam is wrong
|
||||
// deno-lint-ignore no-explicit-any
|
||||
const qs = new URLSearchParams(new FormData(el, e.submitter) as any);
|
||||
qs.forEach((value, key) => partialUrl.searchParams.set(key, value));
|
||||
qs.forEach((value, key) => partialUrl.searchParams.append(key, value));
|
||||
} else {
|
||||
init = { body: new FormData(el, e.submitter), method: lowerMethod };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user