Comments (6)
I'm not sure if I fully understand the behavior. Ideally it you select on a date, the current month view will be swiped to the month of that day. For example, if current month is October, if you select any date in October, the view should remain the same. If you select Nov 1st, it will navigate to November.
If you mean when you select a date, but the view goes to the previous/next month, then it's not correct. Do you have some logic that is changing current date when you select the date?
from ionic2-calendar.
I'm not sure if I fully understand the behavior. Ideally it you select on a date, the current month view will be swiped to the month of that day. For example, if current month is October, if you select any date in October, the view should remain the same. If you select Nov 1st, it will navigate to November.
If you mean when you select a date, but the view goes to the previous/next month, then it's not correct. Do you have some logic that is changing current date when you select the date?
I don't understand why it's doing this either...
I can't select a day box unless I don't move my finger at all (which is rare). All it takes is an impulse
I have the impression that the sensitivity of the screen or the module when you touch a box causes it to change month. This only happens on my phone, because on the PC, the test phases go very smoothly.
The module is a copy-paste from the doc, I haven't added anything more.
I "corrected" the problem by blocking swipes, but it's not a real fix.
from ionic2-calendar.
Hi, I'm coming back to you with the same problem, I've figured out what's going on. When I swipe, it doesn't update the month I've just swiped.
(today = January) If I swipe right, it stays on January and doesn't update the view to February. If I swipe again, it updates to February (when I should be on the March slide) and when I touch the screen on my phone, it updates to the right month (in this case March because I swiped twice)
It works fine on Windows in the test phase, but not on Android.
I've max upgrade my dependencies :
"@angular:"17.0.9",
"@capacitor:"5.0.6",
"@ionic/angular": "7.7.0",
"ionic7-calendar": "2.3.0",
"swiper": "^11.0.0",
"tslib": "^2.6.1",
from ionic2-calendar.
Hi, I'm coming back to you with the same problem, I've figured out what's going on. When I swipe, it doesn't update the month I've just swiped.
(today = January) If I swipe right, it stays on January and doesn't update the view to February. If I swipe again, it updates to February (when I should be on the March slide) and when I touch the screen on my phone, it updates to the right month (in this case March because I swiped twice)
It works fine on Windows in the test phase, but not on Android.
I've max upgrade my dependencies : "@angular:"17.0.9", "@capacitor:"5.0.6", "@ionic/angular": "7.7.0", "ionic7-calendar": "2.3.0", "swiper": "^11.0.0", "tslib": "^2.6.1",
How do you fix it?
from ionic2-calendar.
@Shadufi Have the same issue. Are you finding a solution?
from ionic2-calendar.
@Shadufi @iPwa97 I fixed it by adding
html:
<calendar (onCurrentDateChanged)="dateChanged($event)" [currentDate]="calendar.currentDate"> </calendar>
ts:
dateChanged(e){ this.calendar.currentDate = e; this.ref.detectChanges(); }
from ionic2-calendar.
Related Issues (20)
- could you include the version 9.x of swipper in ionic2-calendar ? HOT 4
- Error: node_modules/ion2-calendar/dist/calendar.module.d.ts:8:60 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s). [ng] [ng] 8 static forRoot(defaultOptions?: CalendarModalOptions): ModuleWithProviders HOT 1
- Update to ionic 7 HOT 1
- How to change row height ? HOT 1
- Module '"swiper/types"' has no exported member 'SwiperOptions'. HOT 6
- ionic 7 angular 15 swiper 9 compatibility HOT 2
- Error while loading from a JSON response HOT 5
- Ionic 6 Angular 13 swiping problem HOT 2
- How to change the event background color? HOT 1
- Day view dynamic color change does it only for the first half an hour HOT 2
- Accessing Event Details in a child view HOT 1
- Angular 17 support HOT 3
- Ionic 7 week view header appears in the wrong place HOT 1
- Version 2.2.x error with multiple calendars in the same mode HOT 3
- swiper 11 support HOT 1
- EventSource not loading events and ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError on RangeChange when event source is set HOT 3
- [bug] Issue with View Update on Android Swipes
- [bug]month view failed (V2.4.0) HOT 10
- Unable to install the Ionic7-calendar in ionic 8 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic2-calendar.