Skip to content

Commit

Permalink
Merge pull request jsonform#230 from michaelmairegger/hotfix/number-s…
Browse files Browse the repository at this point in the history
…tep-any

Allow numeric step any
  • Loading branch information
tchapi authored May 16, 2019
2 parents e9f7867 + 762a244 commit 80befb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonform.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ var inputFieldTemplate = function (type) {
'name="<%= node.name %>" value="<%= escape(value) %>" id="<%= id %>"' +
'<%= (node.disabled? " disabled" : "")%>' +
'<%= (node.readOnly ? " readonly=\'readonly\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.step > 0 ? " step=\'" + node.schemaElement.step + "\'" : "") %>' +
'<%= (node.schemaElement && (node.schemaElement.step > 0 || node.schemaElement.step == "any") ? " step=\'" + node.schemaElement.step + "\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.maxLength ? " maxlength=\'" + node.schemaElement.maxLength + "\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.required && (node.schemaElement.type !== "boolean") ? " required=\'required\'" : "") %>' +
'<%= (node.placeholder? " placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
Expand Down

0 comments on commit 80befb7

Please sign in to comment.