React-dates: autoFocusEndDate seems to not work for DayPickerRangeController

Created on 14 Aug 2019  路  2Comments  路  Source: airbnb/react-dates

react-dates version
react-dates@^20.2.0

Describe the bug
When I try to use autoFocusEndDate prop in the DayPickerRangeController component I receive error message:
_Warning: Failed prop type: DayPickerRangeController: unknown props found: autoFocusEndDate_

Source code (including props configuration)
Steps to reproduce the behavior:

    <DayPickerRangeController
      autoFocusEndDate
      onPrevMonthClick={handlePrevMonthClick}
      startDate={calendarStartDate}
      endDate={calendarEndDate}
      hideKeyboardShortcutsPanel
      transitionDuration={0}
      navNext={<Chevron />}
      navPrev={<Chevron />}
      numberOfMonths={2}
      minimumNights={0}
      noBorder
      {...{
        initialVisibleMonth,
        isOutsideRange,
        onDatesChange,
        onFocusChange,
        focusedInput,
      }}
    />

Is the issue reproducible in Storybook?
http://airbnb.io/react-dates/?path=/story/daypickerrangecontroller--default - props description

All 2 comments

@yqbk There is on inputs for DayPickerRangeController, so there is no autoFocusEndDate prop

Is it possible to autofocus the enddate input when using DayPickerRangeController?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AsasinCree picture AsasinCree  路  3Comments

krissalvador27 picture krissalvador27  路  3Comments

Jesus-Gonzalez picture Jesus-Gonzalez  路  3Comments

Adam-Pendleton picture Adam-Pendleton  路  3Comments

maciej-w picture maciej-w  路  3Comments