Comparing version 0.2.3 to 0.2.5
@@ -128,2 +128,3 @@ // # pretty-select-value component | ||
getDisplayValue: function getDisplayValue() { | ||
var config = this.props.config; | ||
var currentValue = this.state.value; | ||
@@ -140,3 +141,3 @@ var currentChoice = _.find(this.props.choices, function (choice) { | ||
} | ||
return ''; | ||
return config.fieldPlaceholder(this.props.field) || ''; | ||
}, | ||
@@ -143,0 +144,0 @@ |
@@ -760,2 +760,7 @@ // # default-config | ||
// Get a placeholder (just a default display value, not a default value) for a field. | ||
fieldPlaceholder: function fieldPlaceholder(field) { | ||
return field.placeholder; | ||
}, | ||
// Get the help text for a field. | ||
@@ -762,0 +767,0 @@ fieldHelpText: function fieldHelpText(field) { |
{ | ||
"name": "formatic", | ||
"version": "0.2.3", | ||
"version": "0.2.5", | ||
"description": "Automatic, pluggable form generation", | ||
@@ -13,3 +13,4 @@ "main": "./build/lib/formatic", | ||
"watch": "gulp watch", | ||
"live": "gulp server-live" | ||
"live": "gulp server-live", | ||
"patch-release": "npm version patch && npm publish && git push --follow-tags" | ||
}, | ||
@@ -16,0 +17,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
744319
9979