xgfe / react-native-datepicker

react native datePicker component for both Android and IOS, useing DatePikcerAndroid, TimePickerAndroid and DatePickerIOS
MIT License
2.12k stars 727 forks source link

minDate did not work in Mozilla #461

Open ademilua opened 2 years ago

ademilua commented 2 years ago

Issue

The minDate did not work in mozilla

      <DatePicker
         selected={new Date(this.state.selectedStartDate)}
        onChange={this.handleStartDateChange}
        dateFormat="dd-MM-yyyy"
        minDate={new Date("01-01-2010")}
        showDisabledMonthNavigation
         />

Expected Behavior

This should hide date less than 01-01-2010. In chrome and other browsers it works as expected but failed in mozilla.

gustaflindqvist commented 2 years ago

This component is built for React-Native and iOS and Android. You should post this issue in https://github.com/Hacker0x01/react-datepicker