We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5ad30db + 3189a58 commit 9fed5caCopy full SHA for 9fed5ca
blocks/form/form-fields.js
@@ -70,7 +70,7 @@ const createSelect = async (fd) => {
70
const option = document.createElement('option');
71
option.text = text.trim();
72
option.value = value.trim();
73
- if (option.value === select.value) {
+ if (option.value === fd.Value) {
74
option.setAttribute('selected', '');
75
}
76
select.add(option);
@@ -97,7 +97,7 @@ const createSelect = async (fd) => {
97
} else {
98
options = fd.Options.split(',').map((opt) => ({
99
text: opt.trim(),
100
- value: opt.trim().toLowerCase(),
+ value: opt.trim(),
101
}));
102
103
0 commit comments