Fix value-select: include SELECT element value in GET requests
sx.js only appended INPUT values to GET request URLs. SELECT and TEXTAREA elements with a name attribute were silently ignored, so the category parameter was never sent. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1817,8 +1817,8 @@
|
||||
var qs = new URLSearchParams(new FormData(form2)).toString();
|
||||
if (qs) url += (url.indexOf("?") >= 0 ? "&" : "?") + qs;
|
||||
}
|
||||
// Also handle search inputs with name attr
|
||||
if (el.tagName === "INPUT" && el.name) {
|
||||
// Also handle inputs/selects/textareas with name attr
|
||||
if ((el.tagName === "INPUT" || el.tagName === "SELECT" || el.tagName === "TEXTAREA") && el.name) {
|
||||
var param = encodeURIComponent(el.name) + "=" + encodeURIComponent(el.value);
|
||||
url += (url.indexOf("?") >= 0 ? "&" : "?") + param;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user