Skip to content

Commit a6752bc

Browse files
committed
Update version 2.8.6
1 parent fee412a commit a6752bc

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
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.6
4+
* Revert commits related to `closeOnSelect` that did not fix all issues they were meant to
5+
36
## 2.8.5
47
* Fix bug where `closeOnSelect` was not closing when it was set to `true`
58
* Fix bug where component would not immediately re-render when updating either `utc` or `locale` prop

dist/react-datetime.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
react-datetime v2.8.5
2+
react-datetime v2.8.6
33
https://github.com/YouCanBookMe/react-datetime
44
MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
55
*/
@@ -222,13 +222,13 @@ return /******/ (function(modules) { // webpackBootstrap
222222
updatedState = this.getStateFromProps( nextProps );
223223
}
224224

225-
// What is this for? Keeping for now, will remove later
226225
if ( updatedState.open === undefined ) {
227-
updatedState.open = this.state.open;
228-
}
229-
230-
if ( this.props.closeOnSelect === false ) {
231-
updatedState.open = true;
226+
if ( this.props.closeOnSelect && this.state.currentView !== 'time' ) {
227+
updatedState.open = false;
228+
}
229+
else {
230+
updatedState.open = this.state.open;
231+
}
232232
}
233233

234234
if ( nextProps.viewMode !== this.props.viewMode ) {

dist/react-datetime.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-datetime.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-datetime",
3-
"version": "2.8.5",
3+
"version": "2.8.6",
44
"description": "A lightweight but complete datetime picker React.js component.",
55
"homepage": "https://github.com/YouCanBookMe/react-datetime",
66
"repository": {

0 commit comments

Comments
 (0)