Skip to content

Commit

Permalink
add documentation for the new keepFocus prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Peeters committed Jan 20, 2018
1 parent 79bbb56 commit 634c659
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/src/pages/api/DayPickerInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export default () => (
<a href="#inputProps">inputProps</a>,{' '}
<a href="#overlayComponent">overlayComponent</a>,{' '}
<a href="#parseDate">parseDate</a>, <a href="#placeholder">placeholder</a>,{' '}
<a href="#showOverlay">showOverlay</a>, <a href="#value">value</a>
<a href="#showOverlay">showOverlay</a>, <a href="#value">value</a>,{' '}
<a href="#keepFocus">keepFocus</a>
</p>
<h4>Event handlers</h4>
<p>
Expand Down Expand Up @@ -246,6 +247,16 @@ function MyDayPickerInput(props) {
<p>
The value of the <code>input</code> field.
</p>
<h3>
<Anchor id="keepFocus" />
keeFocus <code>boolean = true</code>
</h3>
<p>
Keep focus on the input when switching focus to something inside the
dayPickerOverlay. You should disable this if you have custom inputs in
something like an
<a href="#overlayComponent">overlayComponent</a>.
</p>

<hr />
<h2>Event handlers</h2>
Expand Down

0 comments on commit 634c659

Please sign in to comment.