Skip to content

Commit fcd15f1

Browse files
authored
Merge pull request #99 from nagarajanchinnasamy/master
When enum length is 1, set selectedIndex to 0
2 parents 44dd953 + 5de6733 commit fcd15f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/brutusin-json-forms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ if (typeof brutusin === "undefined") {
204204
}
205205
}
206206
if (s.enum.length === 1)
207-
input.selectedIndex = 1;
207+
input.selectedIndex = 0;
208208
else
209209
input.selectedIndex = selectedIndex;
210210
} else {

0 commit comments

Comments
 (0)