fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
246 stars 247 forks source link

startDate is resetting to current date if minDate is used #394

Open Sakshi-Bhargava opened 2 years ago

Sakshi-Bhargava commented 2 years ago

Versions

Describe the bug If minDate is larger then the preselected startDate then startDate automatically sets to current time range and user is not able to see the preselected time range. Is there any way I can stop this behaviour?

To Reproduce Steps to reproduce the behaviour:

  1. Set minDate to today and maxDate to next month
  2. Save it.
  3. Check the page tomorrow, the startDate gets changed to today

Expected behaviour Preselected startDate should not change according to minDate

Screenshots yesterday: when user select the date range

Screenshot 2021-09-09 at 5 45 39 PM

today: when user visit this page to check the range

Screenshot 2021-09-09 at 5 55 53 PM