-
Notifications
You must be signed in to change notification settings - Fork 199
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
The Week View Scroll Between Weeks Automatically without any event #600
Comments
@srephaniejoyce What do you mean the week changes automatically? The week changes only when you swipe or you set the current date to a new date. Is it possible you have some code logic that will update the current date? |
I mean, when the current week appear, the next weeks appears also by swipping automaticalyy without any action In my code logic, i set the current date just in declaration and i don't swipe, here is the full logic code :
And in html the same previous code :
|
@srephaniejoyce I didn't spot any thing wrong from the code you provided. If you remove all the unnecessary code, for example, not loading events, just displaying an empty calendar, will this auto swipe still happen? |
Im using the library ionic2-calendar and i want to display just by week view
calendar = {
mode: 'week' as CalendarMode,
currentDate: new Date(),
locale: '',
lockSwipeToPrev: true, // I've added this option but doesnt resolve the bug
};
In html, i've add the calendar like this :
<calendar
[eventSource]="eventSource"
[calendarMode]="calendar.mode"
[currentDate]="calendar.currentDate"
startHour="6"
endHour="20"
step="30"
startingDayWeek="1"
[locale]="calendar.locale"
[lockSwipeToPrev]="lockSwipeToPrev"
>
The calendar is displayed with week view but the week change automatically without any action. How to correct this please ?
The text was updated successfully, but these errors were encountered: