Skip to content

[Date Picker] minDate doesn't allow to select that min value. #963

@diurivj

Description

@diurivj

Description:
When you set a minDate value, you cannot actually select that date.

To Reproduce:

  1. Set the minDate value to new Date() (today):
 <DatePickerInput
    inline
    autoOk
    defaultValue={null}
    locales="en-US"
    id="inline-date-picker-start"
    label={`Start time ${!startDate ? ' ...' : ''}`}
    animateInline={false}
    minDate={new Date()}
    value={startDate}
    onChange={(v, d) => setStartDate(d)}
    pickerFooterClassName="hidden-footer"
/>
  1. Open the DatePicker and try to select today.

Expected behavior:
Should be able to select the minDate value.

Desktop:

  • OS: [macOS Big Sur 11.0 Beta]
  • Browser [Chrome]
  • Version [85.0.4183.102 (Official Build) (64-bit)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions