Skip to content

Commit

Permalink
Merge pull request brutusin#77 from zevero/master
Browse files Browse the repository at this point in the history
Allow step parameter for integer and number
  • Loading branch information
idelvall authored Apr 18, 2017
2 parents 0ec929c + 3add9bd commit d08281f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/brutusin-json-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ if (typeof brutusin === "undefined") {
input = document.createElement("input");
if (s.type === "integer" || s.type === "number") {
input.type = "number";
input.step = "any";
input.step = s.step?""+s.step:"any";
if (typeof value !== "number") {
value = null;
}
Expand Down

0 comments on commit d08281f

Please sign in to comment.