From 634c65935446069b4ef05f50bd797b0c5a3b0167 Mon Sep 17 00:00:00 2001 From: Bart Peeters Date: Sat, 20 Jan 2018 16:58:32 +0100 Subject: [PATCH] add documentation for the new keepFocus prop --- docs/src/pages/api/DayPickerInput.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/src/pages/api/DayPickerInput.js b/docs/src/pages/api/DayPickerInput.js index a58897c755..52f51ea0da 100644 --- a/docs/src/pages/api/DayPickerInput.js +++ b/docs/src/pages/api/DayPickerInput.js @@ -23,7 +23,8 @@ export default () => ( inputProps,{' '} overlayComponent,{' '} parseDate, placeholder,{' '} - showOverlay, value + showOverlay, value,{' '} + keepFocus

Event handlers

@@ -246,6 +247,16 @@ function MyDayPickerInput(props) {

The value of the input field.

+

+ + keeFocus boolean = true +

+

+ 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 + overlayComponent. +


Event handlers