Skip to content

Commit

Permalink
Add on single line
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmairegger committed May 16, 2019
1 parent c006a58 commit 762a244
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/jsonform.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,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 == \"any\" ? " step=\'any\'" : "") %>' +
'<%= (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 762a244

Please sign in to comment.