-
Notifications
You must be signed in to change notification settings - Fork 195
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 and Back button click event not working #481
Comments
�@NIYASSURABHI How is it not working? Any error message printed out in the console? This is just a simply DOM query, could you check the DOM structure to if the queried element exists ('.swiper-container')? |
When i console the swiper , the active index is changing. But view is not changing. Normal swiping is working |
I have fixed this issue by changing current date as you said in another issue. But i noticed another situation that, when i click right navigation from January 31 its showing march 2 (because February have only 29 days) .this issue is happening on several months because some have 30 and some have 31. How can i handle this situation? |
@NIYASSURABHI You could set the date to some day in the middle of the month so that it won't cause such edge case. Another way is you could check after setting the month, whether the month is the expected one, if not, adjust the date to the expected month. |
Do u have any workaround to handle this. it will be very helpful for me |
"Another way is you could check after setting the month, whether the month is the expected one, if not, adjust the date to the expected month." How can i do this? Can u please give a guidance? |
var cuurentday=this.calendar.currentDate;
i have tried with this logic..but its jumping to next 2 months |
@Fresh-Dev-zunairzakir Did you import the NgCalendarModule in module file? This looks like the calendar element is not recognized. |
@NIYASSURABHI You need to add more logic to avoid edge case, for example always set the date to some day in the middle of the month, instead the first and last day. |
Do you sloved this problem ? I have also problem with next prev button navigation. Sometimes it works but mostly not... |
I'am using two arrow buttons to navigate next/prev month. using
var mySwiper = document.querySelector('.swiper-container')['swiper'];
mySwiper.slideNext();
But its not working in my ionic4 (Angular8) Application. Please help me on this
The text was updated successfully, but these errors were encountered: