From 7c26ac1ad3c5bb0f7e14015fe717f4a7a1a91ec7 Mon Sep 17 00:00:00 2001
From: marquex <javi@arqex.com>
Date: Tue, 13 Oct 2015 19:14:58 +0200
Subject: [PATCH] Removes references to min/maxDate and allows to reset the picker value.

---
 DateTime.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/DateTime.js b/DateTime.js
index 8e562fe..f2d2f30 100644
--- a/DateTime.js
+++ b/DateTime.js
@@ -31,9 +31,7 @@
 		// timeFormat: TYPES.string | TYPES.bool,
 		inputProps: TYPES.object,
 		viewMode: TYPES.oneOf(['years', 'months', 'days', 'time']),
-		isValidDate: TYPES.func,
-		minDate: TYPES.object,
-		maxDate: TYPES.object
+		isValidDate: TYPES.func
 	},
 
 	getDefaultProps: function() {
@@ -115,7 +113,7 @@
 			update = {}
 		;
 
-		if( nextProps.value ){
+		if( nextProps.value != this.props.value ){
 			update = this.getStateFromProps( nextProps );
 		}
 		if ( formats.datetime !== this.getFormats( this.props ).datetime ) {

--
Gitblit v1.9.3