Skip to content

Commit 3add9bd

Browse files
authored
Allow step parameter for integer and number
1 parent 0ec929c commit 3add9bd

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
@@ -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
}

0 commit comments

Comments
 (0)