|
1 | 1 | /*
|
2 |
| -react-datetime v2.8.8 |
| 2 | +react-datetime v2.8.9 |
3 | 3 | https://github.com/YouCanBookMe/react-datetime
|
4 | 4 | MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
|
5 | 5 | */
|
@@ -794,7 +794,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
794 | 794 | * Check if the browser scrollbar was clicked
|
795 | 795 | */
|
796 | 796 | var clickedScrollbar = function(evt) {
|
797 |
| - return document.documentElement.clientWidth <= evt.clientX; |
| 797 | + return document.documentElement.clientWidth <= evt.clientX || document.documentElement.clientHeight <= evt.clientY; |
798 | 798 | };
|
799 | 799 |
|
800 | 800 | /**
|
@@ -851,6 +851,12 @@ return /******/ (function(modules) { // webpackBootstrap
|
851 | 851 | // this is given meaning in componentDidMount
|
852 | 852 | __outsideClickHandler: function() {},
|
853 | 853 |
|
| 854 | + getDefaultProps: function() { |
| 855 | + return { |
| 856 | + excludeScrollbar: config && config.excludeScrollbar |
| 857 | + }; |
| 858 | + }, |
| 859 | + |
854 | 860 | /**
|
855 | 861 | * Add click listeners to the current document,
|
856 | 862 | * linked to this component's state.
|
@@ -907,7 +913,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
907 | 913 | instance,
|
908 | 914 | clickOutsideHandler,
|
909 | 915 | this.props.outsideClickIgnoreClass || IGNORE_CLASS,
|
910 |
| - this.props.excludeScrollbar || false, |
| 916 | + this.props.excludeScrollbar, // fallback not needed, prop always exists because of getDefaultProps |
911 | 917 | this.props.preventDefault || false,
|
912 | 918 | this.props.stopPropagation || false
|
913 | 919 | );
|
@@ -1103,7 +1109,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
1103 | 1109 | if ( isDisabled )
|
1104 | 1110 | classes += ' rdtDisabled';
|
1105 | 1111 |
|
1106 |
| - if ( date && i === month && year === date.year() ) |
| 1112 | + if ( date && i === date.month() && year === date.year() ) |
1107 | 1113 | classes += ' rdtActive';
|
1108 | 1114 |
|
1109 | 1115 | props = {
|
|
0 commit comments