Skip to content

Commit 9fed5ca

Browse files
authored
Merge pull request #57 from adobe/select-value
Select value
2 parents 5ad30db + 3189a58 commit 9fed5ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blocks/form/form-fields.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const createSelect = async (fd) => {
7070
const option = document.createElement('option');
7171
option.text = text.trim();
7272
option.value = value.trim();
73-
if (option.value === select.value) {
73+
if (option.value === fd.Value) {
7474
option.setAttribute('selected', '');
7575
}
7676
select.add(option);
@@ -97,7 +97,7 @@ const createSelect = async (fd) => {
9797
} else {
9898
options = fd.Options.split(',').map((opt) => ({
9999
text: opt.trim(),
100-
value: opt.trim().toLowerCase(),
100+
value: opt.trim(),
101101
}));
102102
}
103103

0 commit comments

Comments
 (0)