Skip to content

Commit

Permalink
Bump version to 2.8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
simeg committed Apr 8, 2017
1 parent a87306b commit 7d7b99e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog
=========
## 2.8.9
* Fixes issue where incorrect current month is shown

## 2.8.8
* Fixes issues introduced in v2.8.7 recognizing any calendar view as clickingOutside trigger

Expand Down
14 changes: 10 additions & 4 deletions dist/react-datetime.js
Original file line number Diff line number Diff line change
@@ -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
*/
Expand Down Expand Up @@ -794,7 +794,7 @@ return /******/ (function(modules) { // webpackBootstrap
* 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;
};

/**
Expand Down Expand Up @@ -851,6 +851,12 @@ return /******/ (function(modules) { // webpackBootstrap
// this is given meaning in componentDidMount
__outsideClickHandler: function() {},

getDefaultProps: function() {
return {
excludeScrollbar: config && config.excludeScrollbar
};
},

/**
* Add click listeners to the current document,
* linked to this component's state.
Expand Down Expand Up @@ -907,7 +913,7 @@ return /******/ (function(modules) { // webpackBootstrap
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
);
Expand Down Expand Up @@ -1103,7 +1109,7 @@ return /******/ (function(modules) { // webpackBootstrap
if ( isDisabled )
classes += ' rdtDisabled';

if ( date && i === month && year === date.year() )
if ( date && i === date.month() && year === date.year() )
classes += ' rdtActive';

props = {
Expand Down
Loading

0 comments on commit 7d7b99e

Please sign in to comment.