-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Prev button not working in custom dayGrid view when dateIncrement is shorter than duration #4678
Comments
Would you be able to post a runnable, stripped-down demonstration of the bug? Would really appreciate it because the time saved reproducing will be time spent fixing. |
Would this pen be what you are desiring ? |
Thanks for the demo, confirmed. I can also see the issue without |
I tried that too. It did seem to work with the dateincrement set on years, tried days too but was unsuccesful with that. |
Hello, I have a similar problem using the plugin timeGrid in v4.2.0 I basically want to display a 3 weeks calendar with the ability to shift forward and backward by one week. Here an example to demonstrate the problem : To reproduce the problem first select the 3 weeks view (3 week button), click on the next, and then twice on the previous button. How to avoid this bug ? |
related to #4568 |
I'm experiencing the same issue. I just like to add that when |
Hi |
I'm currently suffering from this problem on the latest 4.3.1, when will this be solved? if that can't be answered is their a temporary workaround? |
Its a bit of a fudge but you should be able to achieve it with the below code additions. Bootstrap plugin is required for the chevron but you could use special characters. Hope it helps
|
I've encountered this bug too. My calendar is configured for custom 3-days view and looks like:
Prev button works only to move 1 day back in history. Temporary fix from @josh4cs works. |
I had the same problem and @josh4cs fix also worked for me. |
this fix has been released in v5.8.0 an updated repro: |
It doesn't work entirely in v5.8.0 (nor in v5.9.0). I have the following requirement: a 4 week timeline, 1 week in the past, 1 current week, 2 upcoming weeks. The buttons (Prev and Next) are working fine when you click them once. When you click on it a second time, it shows a strange behavior. For instance, clicking the Next button actually goes back instead? Maybe iam doing something wrong? Please see codepen: |
Same thing happening here with a slightly different custom view (2-week view, show the previous week and the current view, advance or retract 1 week at a time). The first navigation works fine, then breaks apart by always moving backwards. Here's another pen to show this behavior with our setup: https://codepen.io/swssolutions/pen/MWooqpb?editors=0010 It works whenever |
I am using v 4.0.2
This is the code for my custom view :
`
document.addEventListener('DOMContentLoaded', function () {
var calendarEl = document.getElementById('calendar');
`
I basically want a two week view with the ability to shift weekwise. While this works very well for advancing a week, the previous button gets broken after one use.
When clicking on the next button, I can go back again. But still only one week, so once I move 4 weeks in the future, I can only return to 3 weeks in the future.
Moreover, the today button does not work when I move one week back.
The text was updated successfully, but these errors were encountered: