Skip to content

Commit 39b8275

Browse files
Twotenthree (arqex#434)
* Version 2.10.3
1 parent 0331198 commit 39b8275

11 files changed

+3407
-1480
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
Changelog
22
=========
3+
## 2.10.3
4+
* Update react-onclickoutside dependancy
5+
* Remove isValidDate check before rendering as implementation was causing crashes in some ednge cases.
6+
37
## 2.10.2
48
* Move @types/react back to devDependencies
9+
* Add [demo](https://youcanbookme.github.io/react-datetime) app.
510

611
## 2.10.1
712
* Fix build files.

DateTime.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ var Datetime = createClass({
192192
}
193193
}
194194
}
195-
//we should only show a valid date if we are provided a isValidDate function.
196-
if (this.props.isValidDate) {
195+
//we should only show a valid date if we are provided a isValidDate function. Removed in 2.10.3
196+
/*if (this.props.isValidDate) {
197197
updatedState.viewDate = updatedState.viewDate || this.state.viewDate;
198198
while (!this.props.isValidDate(updatedState.viewDate)) {
199199
updatedState.viewDate = updatedState.viewDate.add(1, 'day');
200200
}
201-
}
201+
}*/
202202
this.setState( updatedState );
203203
},
204204

0 commit comments

Comments
 (0)