Skip to content

Commit 7d7b99e

Browse files
committed
Bump version to 2.8.9
1 parent a87306b commit 7d7b99e

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Changelog
22
=========
3+
## 2.8.9
4+
* Fixes issue where incorrect current month is shown
5+
36
## 2.8.8
47
* Fixes issues introduced in v2.8.7 recognizing any calendar view as clickingOutside trigger
58

dist/react-datetime.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
react-datetime v2.8.8
2+
react-datetime v2.8.9
33
https://github.com/YouCanBookMe/react-datetime
44
MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
55
*/
@@ -794,7 +794,7 @@ return /******/ (function(modules) { // webpackBootstrap
794794
* Check if the browser scrollbar was clicked
795795
*/
796796
var clickedScrollbar = function(evt) {
797-
return document.documentElement.clientWidth <= evt.clientX;
797+
return document.documentElement.clientWidth <= evt.clientX || document.documentElement.clientHeight <= evt.clientY;
798798
};
799799

800800
/**
@@ -851,6 +851,12 @@ return /******/ (function(modules) { // webpackBootstrap
851851
// this is given meaning in componentDidMount
852852
__outsideClickHandler: function() {},
853853

854+
getDefaultProps: function() {
855+
return {
856+
excludeScrollbar: config && config.excludeScrollbar
857+
};
858+
},
859+
854860
/**
855861
* Add click listeners to the current document,
856862
* linked to this component's state.
@@ -907,7 +913,7 @@ return /******/ (function(modules) { // webpackBootstrap
907913
instance,
908914
clickOutsideHandler,
909915
this.props.outsideClickIgnoreClass || IGNORE_CLASS,
910-
this.props.excludeScrollbar || false,
916+
this.props.excludeScrollbar, // fallback not needed, prop always exists because of getDefaultProps
911917
this.props.preventDefault || false,
912918
this.props.stopPropagation || false
913919
);
@@ -1103,7 +1109,7 @@ return /******/ (function(modules) { // webpackBootstrap
11031109
if ( isDisabled )
11041110
classes += ' rdtDisabled';
11051111

1106-
if ( date && i === month && year === date.year() )
1112+
if ( date && i === date.month() && year === date.year() )
11071113
classes += ' rdtActive';
11081114

11091115
props = {

0 commit comments

Comments
 (0)