@@ -212,7 +212,7 @@ if (typeof brutusin === "undefined") {
212212 input = document . createElement ( "input" ) ;
213213 if ( s . type === "integer" || s . type === "number" ) {
214214 input . type = "number" ;
215- input . step = "any" ;
215+ input . step = s . step ? "" + s . step : "any" ;
216216 if ( typeof value !== "number" ) {
217217 value = null ;
218218 }
@@ -358,13 +358,13 @@ if (typeof brutusin === "undefined") {
358358
359359 var optionTrue = document . createElement ( "option" ) ;
360360 var textTrue = document . createTextNode ( BrutusinForms . messages [ "true" ] ) ;
361- textTrue . value = "true" ;
361+ optionTrue . value = "true" ;
362362 appendChild ( optionTrue , textTrue , s ) ;
363363 appendChild ( input , optionTrue , s ) ;
364364
365365 var optionFalse = document . createElement ( "option" ) ;
366366 var textFalse = document . createTextNode ( BrutusinForms . messages [ "false" ] ) ;
367- textFalse . value = "false" ;
367+ optionFalse . value = "false" ;
368368 appendChild ( optionFalse , textFalse , s ) ;
369369 appendChild ( input , optionFalse , s ) ;
370370
@@ -1251,7 +1251,8 @@ if (typeof brutusin === "undefined") {
12511251 return input . getValue ( ) ;
12521252 }
12531253 var value ;
1254- if ( schema . enum ) {
1254+
1255+ if ( input . tagName . toLowerCase ( ) === "select" ) {
12551256 value = input . options [ input . selectedIndex ] . value ;
12561257 } else {
12571258 value = input . value ;
0 commit comments