hsuanxyz / ion2-calendar

📅 A date picker components for ionic2 /ionic3 / ionic4
https://hsuanxyz.github.io/demo/ion2-calendar/
MIT License
555 stars 278 forks source link

Reset Dates using PickMode Range Ionic 5 #307

Open myvictorlife opened 4 years ago

myvictorlife commented 4 years ago

Ionic version: (check one with "x") [ ] 2.x [ ] 3.x [ ] 4.x [x] 5.x

Ion2-calendar mode: (check one with "x") [ ] components mode [ ] modal mode

I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] help me

Current behavior: I'm using pickMode: 'range' and it works well, but I'm having a problem in the following situation: After selecting the start date and end date, I would like to select the start date and end date again. I would like the dates to be reset and to be possible select start date and end date again. Today it is only possible for me to select the start date if I select a date between the 2 dates after selected.

Expected behavior: I would like to have the same behavior that we have today on this site "https://www-yefjsqmtmv.now.sh/", always be possible to select start and end dates. In another worlds just reset the dates.

Steps to reproduce: Example: Start date: "11" End date: "14"

If i click the day "15", the end date is selected. Start date: "11" End date: "15"

If i click the day "10", the start date is selected. Start date: "10" End date: "15"

If i click the day "12", Then yes I have the possibility to select the start date and end date.

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Ionic:

   Ionic CLI                     : 6.10.1 
   Ionic Framework               : @ionic/angular 5.2.3
   @angular-devkit/build-angular : 0.1000.2
   @angular-devkit/schematics    : 10.0.2
   @angular/cli                  : 10.0.2
   @ionic/angular-toolkit        : 2.2.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 6.1.0

Utility:

   cordova-res : 0.15.1
   native-run  : 1.0.0
djabif commented 11 months ago

Hi @myvictorlife , did you find a solution for this?