Skip to content

Commit

Permalink
Twotenthree (#434)
Browse files Browse the repository at this point in the history
* Version 2.10.3
  • Loading branch information
layneanderson authored Sep 29, 2017
1 parent 0331198 commit 39b8275
Show file tree
Hide file tree
Showing 11 changed files with 3,407 additions and 1,480 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Changelog
=========
## 2.10.3
* Update react-onclickoutside dependancy
* Remove isValidDate check before rendering as implementation was causing crashes in some ednge cases.

## 2.10.2
* Move @types/react back to devDependencies
* Add [demo](https://youcanbookme.github.io/react-datetime) app.

## 2.10.1
* Fix build files.
Expand Down
6 changes: 3 additions & 3 deletions DateTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ var Datetime = createClass({
}
}
}
//we should only show a valid date if we are provided a isValidDate function.
if (this.props.isValidDate) {
//we should only show a valid date if we are provided a isValidDate function. Removed in 2.10.3
/*if (this.props.isValidDate) {
updatedState.viewDate = updatedState.viewDate || this.state.viewDate;
while (!this.props.isValidDate(updatedState.viewDate)) {
updatedState.viewDate = updatedState.viewDate.add(1, 'day');
}
}
}*/
this.setState( updatedState );
},

Expand Down
Loading

0 comments on commit 39b8275

Please sign in to comment.