diff options
author | EliasPrescott <85904049+EliasPrescott@users.noreply.github.com> | 2023-10-26 12:53:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 11:53:58 -0600 |
commit | 0718daa3ac62dfba0c20e357a66fbf24d2169392 (patch) | |
tree | 0a36f8cb161ec92af1b45549e7fd4f861c579302 /src | |
parent | 7274454360aa5ff5f9a5ed1657450b93e9529b89 (diff) | |
download | htmx-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.js | 2 |
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 |