Skip to content

[EuiDatePicker] Docs/Types list unsupported react-datepicker props #5315

Closed

Description

@joeried

I'm not sure if I'm missing something, but it looks to me like both the types and docs for EuiDatePicker each list props from react-datepicker that are intentionally not supported by EuiDatePicker.

I noticed this with todayButton, but after a quick look at the code I believe monthsShown,showWeekNumbers,fixedHeight,dropdownMode,useShortMonthInDropdown,timeCaption,disabledKeyboardNavigation,isClearable,withPortal,showMonthYearDropdown are also affected.

Activity

  1. thompsongl commented on Oct 25, 2021

    @thompsongl
    Contributor

    Hey @joeried. Thanks for the exhaustive list!

    You're correct that the lack of support is intentional, although I didn't know that so many documented props were unsupported.
    We do not plan to add support for those unsupported props, and will in fact be removing react-datepicker in the near future.

    We can, for now, at least remove the unsupported props from the table.

  2. added
    documentation
    on Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions