Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next month selection dates bring me back to current month in ion2-calendar #303

Open
prakashbarik90 opened this issue Jul 6, 2020 · 0 comments

Comments

@prakashbarik90
Copy link

I have added below library for calendar to pick dates as single, multi and range.
Here is the link,
https://github.com/HsuanXyz/ion2-calendar/tree/v2

My HTML code:

<ion-item no-padding>
            <ion-calendar [(ngModel)]="dateMulti" [options]="optionsMulti" [type]="'string'" [format]="'YYYY-MM-DD'"
              (onChange)="selectedMultiDates($event)">
            </ion-calendar>
          </ion-item>

TS code:

export class CalendarBookPage {

optionsMulti: CalendarComponentOptions = {
    pickMode: 'multi'
  };

constructor(){}

selectedMultiDates(dates) {
    this.dateMulti = JSON.parse(JSON.stringify(dates));
}

ionic version:3.20.0

Basically when i click on next month and select on any date(s) it redirect me to current month. So here i want to stay on next month with highlighting of selected dates.

Can you please let me know, how could i do that with this library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant