Fix parsing values of option elements in forms #162

Merged
BehindTheMath merged 2 commits from fix/form-option-element into master 2018-05-30 14:39:09 -05:00
Showing only changes of commit 29d7b4c664 - Show all commits

View File

@@ -67,7 +67,7 @@ function parseFormElements(el) {
for (var i = 0; i < element.options.length; i++) {
opt = element.options[i]
if (opt.selected) {
if (opt.selected && !opt.disabled) {
values.push(opt.hasAttribute("value") ? opt.value : opt.text)
}
}