BUG: Calendar.update() when called after the month Transition Animation re-does the animation again
This is a (multiple allowed):
-
[x] bug
-
[ ] enhancement
-
[ ] feature-discussion (RFC)
-
Framework7 Version: Framework7 2.0.7, Framework7 Vue 2.0.7.
-
Platform and Target: Chrome 63.0.3239.132.
-
Live Link or JSFiddle: Tried creating a Fiddle but not successful. Here is what I have so far - https://jsfiddle.net/k6t3fnn7/10/. I dont know how to make it work on a non-vue project.
What you did
In the monthYearChangeEnd event of the Calendar Component I do an AJAX call to get more events then update the calendar events and finally do a calendar.update(). The problem is when I swipe the calendar to go to the next/prev month and calendar.update() runs the Transition Animation for the 2nd time which makes the UI very confusing as if the month hasnt really changed.
If you look at the attached GIF you will see what I mean. To make it issue obvious I have put the calendar.update() in a 2 sec timeout.

Expected Behavior
calendar.update() should NOT trigger the Month change Animation.
Actual Behavior
calendar.update() is triggering the Month change Animation.
P.S. Remember, an issue is not the place to ask questions. You can use Stack Overflow for that or join the #framework7 channel on irc.freenode.net, where we will be more than happy to help answer your questions.
Before you open an issue, please check if a similar issue already exists or has been closed before.
Thank you so much. Great work. :+1:
@manish2535 : how did you make your gif ?
Google for a software called Licecap.
Regards, Manish
On Mar 5, 2018 5:11 AM, "SpiderNeo" [email protected] wrote:
@manish2535 https://github.com/manish2535 : how did you make your gif ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/framework7io/framework7/issues/2242#issuecomment-370371294, or mute the thread https://github.com/notifications/unsubscribe-auth/AEcp9kSxDkgTTZy_NZSudfdwk-Nj6UdBks5tbQ9pgaJpZM4SbYMK .
Thank you.