summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEliasPrescott <85904049+EliasPrescott@users.noreply.github.com>2023-10-26 12:53:58 -0500
committerGitHub <noreply@github.com>2023-10-26 11:53:58 -0600
commit0718daa3ac62dfba0c20e357a66fbf24d2169392 (patch)
tree0a36f8cb161ec92af1b45549e7fd4f861c579302 /src
parent7274454360aa5ff5f9a5ed1657450b93e9529b89 (diff)
downloadhtmx-0718daa3ac62dfba0c20e357a66fbf24d2169392.tar.gz
htmx-0718daa3ac62dfba0c20e357a66fbf24d2169392.zip
Fix: form submission of email inputs with `multiple` attribute (#1917)
fixing multiple email input values
Diffstat (limited to 'src')
-rw-r--r--src/htmx.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/htmx.js b/src/htmx.js
index e6cd3892..35f99a42 100644
--- a/src/htmx.js
+++ b/src/htmx.js
@@ -2440,7 +2440,7 @@ return (function () {
if (shouldInclude(elt)) {
var name = getRawAttribute(elt,"name");
var value = elt.value;
- if (elt.multiple) {
+ if (elt.multiple && elt.tagName === "SELECT") {
value = toArray(elt.querySelectorAll("option:checked")).map(function (e) { return e.value });
}
// include file inputs