react-datetime
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -25,2 +25,3 @@ 'use strict'; | ||
date: TYPES.object, | ||
onBlur: TYPES.func, | ||
onChange: TYPES.func, | ||
@@ -43,2 +44,3 @@ locale: TYPES.string, | ||
input: true, | ||
onBlur: function () {}, | ||
onChange: function (x) { | ||
@@ -222,3 +224,3 @@ console.log(x); | ||
inputValue: date.format( this.state.inputFormat ) | ||
}); | ||
}, this.callOnChange ); | ||
}, | ||
@@ -231,2 +233,3 @@ | ||
handleClickOutside: function(){ | ||
this.props.onBlur(this.state.inputValue); | ||
if( this.props.input && this.state.open ) | ||
@@ -233,0 +236,0 @@ this.setState({ open: false }); |
{ | ||
"name": "react-datetime", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "A lightweight but complete datetime picker React.js component.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/arqex/react-datetime", |
@@ -40,2 +40,3 @@ react-datetime | ||
| **onChange** | function | x => console.log(x) | Callback trigger when the date changes | | ||
| **onBlur** | function | empty function | Callback trigger for when the user clicks outside of the input, simulating a regular onBlur | | ||
| **viewMode** | string or number | 'days' | The default view to display when the picker is shown. ('years', 'months', 'days', 'time') | | ||
@@ -42,0 +43,0 @@ | **inputProps** | object | undefined | Defines additional attributes for the input element of the component. | |
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
20513
497
98