From 7d7b99e7dd32e2609c1e5461d80113759d63fd9f Mon Sep 17 00:00:00 2001 From: Simon Egersand <s.egersand@gmail.com> Date: Sat, 08 Apr 2017 13:04:06 +0200 Subject: [PATCH] Bump version to 2.8.9 --- dist/react-datetime.js | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/dist/react-datetime.js b/dist/react-datetime.js index 825c7c1..11d30d1 100644 --- a/dist/react-datetime.js +++ b/dist/react-datetime.js @@ -1,5 +1,5 @@ /* -react-datetime v2.8.8 +react-datetime v2.8.9 https://github.com/YouCanBookMe/react-datetime MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE */ @@ -794,7 +794,7 @@ * Check if the browser scrollbar was clicked */ var clickedScrollbar = function(evt) { - return document.documentElement.clientWidth <= evt.clientX; + return document.documentElement.clientWidth <= evt.clientX || document.documentElement.clientHeight <= evt.clientY; }; /** @@ -850,6 +850,12 @@ // this is given meaning in componentDidMount __outsideClickHandler: function() {}, + + getDefaultProps: function() { + return { + excludeScrollbar: config && config.excludeScrollbar + }; + }, /** * Add click listeners to the current document, @@ -907,7 +913,7 @@ instance, clickOutsideHandler, this.props.outsideClickIgnoreClass || IGNORE_CLASS, - this.props.excludeScrollbar || false, + this.props.excludeScrollbar, // fallback not needed, prop always exists because of getDefaultProps this.props.preventDefault || false, this.props.stopPropagation || false ); @@ -1103,7 +1109,7 @@ if ( isDisabled ) classes += ' rdtDisabled'; - if ( date && i === month && year === date.year() ) + if ( date && i === date.month() && year === date.year() ) classes += ' rdtActive'; props = { -- Gitblit v1.9.3