Skip to content

Commit

Permalink
[fixed] Calendar only refocuses itself when previously focused
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Sep 30, 2015
1 parent d1f49d1 commit ac46a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ let Calendar = React.createClass({
ref='animation'
duration={duration}
direction={slideDirection}
onAnimate={() => this.focus(true)}
onAnimate={() => focused && this.focus()}
>
<View {...viewProps}
tabIndex='-1'
Expand Down

0 comments on commit ac46a2a

Please sign in to comment.