react-bsonschema-form
Advanced tools
Comparing version 0.43.10 to 0.43.11
@@ -60,5 +60,8 @@ 'use strict'; | ||
var utcIsSpecified = uiSchema['ui:options'] && uiSchema['ui:options'].hasOwnProperty('utc'); | ||
var utc = !utcIsSpecified || uiSchema['ui:options'].utc; | ||
var uiOptions = uiSchema['ui:options'] || {}; | ||
var utc = !uiOptions.hasOwnProperty('utc') || uiOptions.utc; | ||
var dateFormat = uiOptions.dateFormat || true; | ||
var placeholder = uiOptions.placeholder || 'mm/dd/yyyy'; | ||
if (readonly || disabled) { | ||
@@ -70,6 +73,7 @@ var formDataString = stringifyDate({ date: formData, utc: utc }); | ||
return _react2.default.createElement(_reactDatetime2.default, { | ||
inputProps: { placeholder: 'mm/dd/yyyy' }, | ||
inputProps: { placeholder: placeholder }, | ||
utc: utc, | ||
input: true, | ||
closeOnSelect: true, | ||
dateFormat: dateFormat, | ||
timeFormat: false, | ||
@@ -76,0 +80,0 @@ value: formData, |
{ | ||
"name": "react-bsonschema-form", | ||
"version": "0.43.10", | ||
"version": "0.43.11", | ||
"description": "A simple React component capable of building HTML forms out of a JSON schema.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
3888841
5186