@@ -212,7 +212,7 @@ if (typeof brutusin === "undefined") {
212
212
input = document . createElement ( "input" ) ;
213
213
if ( s . type === "integer" || s . type === "number" ) {
214
214
input . type = "number" ;
215
- input . step = "any" ;
215
+ input . step = s . step ? "" + s . step : "any" ;
216
216
if ( typeof value !== "number" ) {
217
217
value = null ;
218
218
}
@@ -358,13 +358,13 @@ if (typeof brutusin === "undefined") {
358
358
359
359
var optionTrue = document . createElement ( "option" ) ;
360
360
var textTrue = document . createTextNode ( BrutusinForms . messages [ "true" ] ) ;
361
- textTrue . value = "true" ;
361
+ optionTrue . value = "true" ;
362
362
appendChild ( optionTrue , textTrue , s ) ;
363
363
appendChild ( input , optionTrue , s ) ;
364
364
365
365
var optionFalse = document . createElement ( "option" ) ;
366
366
var textFalse = document . createTextNode ( BrutusinForms . messages [ "false" ] ) ;
367
- textFalse . value = "false" ;
367
+ optionFalse . value = "false" ;
368
368
appendChild ( optionFalse , textFalse , s ) ;
369
369
appendChild ( input , optionFalse , s ) ;
370
370
@@ -1251,7 +1251,8 @@ if (typeof brutusin === "undefined") {
1251
1251
return input . getValue ( ) ;
1252
1252
}
1253
1253
var value ;
1254
- if ( schema . enum ) {
1254
+
1255
+ if ( input . tagName . toLowerCase ( ) === "select" ) {
1255
1256
value = input . options [ input . selectedIndex ] . value ;
1256
1257
} else {
1257
1258
value = input . value ;
0 commit comments