Skip to content

Commit

Permalink
Merge pull request jsonform#157 from jmediajar/master
Browse files Browse the repository at this point in the history
Add space character to placeholder string
  • Loading branch information
tchapi authored Jun 5, 2018
2 parents 5f5f83a + 4df1c03 commit cf241fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/jsonform.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ var inputFieldTemplate = function (type) {
'<%= (node.readOnly ? " readonly=\'readonly\'" : "") %>' +
'<%= (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) + \'"\' : "")%>' +
'<%= (node.placeholder? " placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
' />',
'fieldtemplate': true,
'inputfield': true
Expand Down Expand Up @@ -328,7 +328,7 @@ jsonform.elementTypes = {
'<%= (node.readOnly ? " readonly=\'readonly\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.maxLength ? " maxlength=\'" + node.schemaElement.maxLength + "\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.required ? " required=\'required\'" : "") %>' +
'<%= (node.placeholder? "placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'<%= (node.placeholder? " placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'><%= value %></textarea>',
'fieldtemplate': true,
'inputfield': true
Expand All @@ -339,7 +339,7 @@ jsonform.elementTypes = {
'<%= (node.readOnly ? " readonly=\'readonly\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.maxLength ? " maxlength=\'" + node.schemaElement.maxLength + "\'" : "") %>' +
'<%= (node.schemaElement && node.schemaElement.required ? " required=\'required\'" : "") %>' +
'<%= (node.placeholder? "placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'<%= (node.placeholder? " placeholder=" + \'"\' + escape(node.placeholder) + \'"\' : "")%>' +
'><%= value %></textarea>',
'fieldtemplate': true,
'inputfield': true,
Expand Down

0 comments on commit cf241fd

Please sign in to comment.