Skip to content

Commit dfadd1f

Browse files
author
Lauren McCarthy
committed
p5.dom minor change
1 parent 81a6323 commit dfadd1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/addons/p5.dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
}
618618
return this;
619619
} else {
620-
if (arg) {
620+
if (this.elt.getAttribute('multiple')) {
621621
for (var i = 0; i < this.elt.selectedOptions.length; i++) {
622622
arr.push(this.elt.selectedOptions[i].value);
623623
}

0 commit comments

Comments
 (0)