hsuanxyz / ion2-calendar

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

Selected Date gets Unselected #272

Open papuruth opened 5 years ago

papuruth commented 5 years ago

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

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

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

Current behavior:

When ever I select a date and close the modal the date gets selected but when I reopen the modal the selected date is not hilighted. Expected behavior:

I want the date to be selected untill I reload/refresh the page. Steps to reproduce:

Related code:

insert short code snippets here

Other information:

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

Ionic:

   Ionic CLI                     : 5.4.5 (/home/d-Evil/.nvm/versions/node/v10.16.3/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.11.4
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.2.4
   @ionic/angular-toolkit        : 1.3.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 3.1.2, (and 23 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 0.2.9 

System:

   Android SDK Tools : 26.1.1 (/home/d-Evil/Android/Sdk)
   NodeJS            : v10.16.3 (/home/d-Evil/.nvm/versions/node/v10.16.3/bin/node)
   npm               : 6.11.3
   OS                : Linux 4.15
radious15 commented 4 years ago

Hi Papuruth,

I have a similar issue in component mode, whenever I refresh the calendar view (changing style of dayList etc...) and used a "SetTimeOut()".

Have you found a resolution to "force-display" the selected day?

Thanks for your help!

Best regards, Radious

PriyaAgr11 commented 4 years ago

I too have the same issue. Any solution you have found out?

Please help me out, rest of the things are perfectly fine.

Thanks in advance.