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

Missing months as shown on the demo. Can't show more than 11 months in sequence. #273

Closed jcmendes9898 closed 4 years ago

jcmendes9898 commented 5 years ago

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

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

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

Current behavior:

Expected behavior:

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):

insert the output from ionic info here

More detail in here: https://stackoverflow.com/questions/58937453/ion2-calendar-error-when-showing-months-from-a-selected-year

mejdan commented 4 years ago

Same issue ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.1.1

ion2-calendar modal mode if I scroll from January 2020 to the end of year December 2020 and January 2021 are missing.

heyypatrick commented 4 years ago

Same issue ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.1.1

ion2-calendar modal mode if I scroll from January 2020 to the end of year December 2020 and January 2021 are missing.

have you already fixed it @mejdan?

heyypatrick commented 4 years ago

Same issue ionic (Ionic CLI) : 4.10.2 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.1.1 ion2-calendar modal mode if I scroll from January 2020 to the end of year December 2020 and January 2021 are missing.

have you already fixed it @mejdan?

UPDATE: I already fixed mine. I edited calendar.modal.js from node_modules on line 17: Changed NUM_OF_MONTHS_TO_CREATE value to 1 from 3.

Hope it helps!

jcmendes9898 commented 4 years ago

One question, Do you know how to make the modal to be readonly?

heyypatrick commented 4 years ago

One question, Do you know how to make the modal to be readonly?

Ohh, I see. I haven't tried it yet. Anyway, did it work?

jcmendes9898 commented 4 years ago

yes, it worked. Although I'm currently using ionic2-calendar. It works as fine, but it's not as appealing as this one. The modal one. If I managed to make it to be readonly it would be perfect.