GithubHelp home page GithubHelp logo

Comments (6)

twinssbc avatar twinssbc commented on July 23, 2024

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.

Shadufi avatar Shadufi commented on July 23, 2024

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.

Shadufi avatar Shadufi commented on July 23, 2024

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.

iPwa97 avatar iPwa97 commented on July 23, 2024

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.

vadyanB avatar vadyanB commented on July 23, 2024

@Shadufi Have the same issue. Are you finding a solution?

from ionic2-calendar.

Gautammer avatar Gautammer commented on July 23, 2024

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.