Skip to content

Commit b84234a

Browse files
committed
formating
1 parent 53bff60 commit b84234a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/Calendar.jsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ let Calendar = React.createClass({
260260
if (direction === dir.UP )
261261
view = NEXT_VIEW[view] || view
262262

263-
if ( this.isValidView(view) && dates.inRange(date, this.props.min, this.props.max, view)) {
263+
if (this.isValidView(view) && dates.inRange(date, this.props.min, this.props.max, view)) {
264264
notify(this.props.onNavigate, [date, slideDir, view])
265265
this.focus(true);
266266

@@ -281,7 +281,7 @@ let Calendar = React.createClass({
281281

282282
@widgetEnabled
283283
_focus(focused, e){
284-
if ( +this.props.tabIndex === -1)
284+
if (+this.props.tabIndex === -1)
285285
return
286286

287287
this.setTimeout('focus', () => {
@@ -429,5 +429,8 @@ function msgs(msgs){
429429
}
430430

431431

432-
export default createUncontrolledWidget(
433-
Calendar, { value: 'onChange' });
432+
export default createUncontrolledWidget(Calendar, {
433+
value: 'onChange',
434+
viewDate: 'onViewDateChange',
435+
view: 'onViewChange'
436+
});

0 commit comments

Comments
 (0)