Skip to content

Commit 5de6733

Browse files
Merge pull request #1 from nagarajanchinnasamy/nagarajanchinnasamy-patch-1
When enum length is 1, set selectedIndex to 0
2 parents 126a8d4 + 8e0498d commit 5de6733

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)