react-google-flight-datepicker icon indicating copy to clipboard operation
react-google-flight-datepicker copied to clipboard

maxDate not working with SingleDatePicker

Open sainiankit opened this issue 3 years ago • 1 comments

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.

sainiankit avatar May 29 '21 11:05 sainiankit

I wrote the same issue today. With more detailed steps to reproduce. https://github.com/JSLancerTeam/react-google-flight-datepicker/issues/53

oleholei avatar Mar 14 '22 13:03 oleholei