Skip to content

maxDate not working with SingleDatePicker #30

@sainiankit

Description

@sainiankit

https://github.com/JSLancerTeam/react-google-flight-datepicker/blob/705158dee031638092a2b117fba24032a1255af2/src/lib/components/DatePicker/DialogContentDesktop.js#L66

Steps to reproduce -
1.) Use a SingleDatePicker. (With the following props)

<SingleDatePicker
    startDate={value}
    onChange={onChange}
    minDate={new Date(2021, 4, 28)}
    maxDate={new Date(2021, 5, 30)}
    dateFormat={displayFormat}
    monthFormat='MMM YYYY'
    startDatePlaceholder='Date'
    disabled={false}
    startWeekDay='monday'
    singleCalendar
/>

User won't be able to click on next icon because it is disbled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions