Skip to content
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

When using hourStart, hourEnd dragging across days does not work properly #1238

Closed
jstark518 opened this issue Aug 5, 2022 · 2 comments · Fixed by #1242
Closed

When using hourStart, hourEnd dragging across days does not work properly #1238

jstark518 opened this issue Aug 5, 2022 · 2 comments · Fixed by #1242
Labels
2.0 New versions Bug

Comments

@jstark518
Copy link

jstark518 commented Aug 5, 2022

Version

2.1.1

Test Environment

Chrome Windows

Current Behavior

In week view when using hourStart and/or hourEnd, dragging across days results in a error and the calendar no longer functions.

const container = document.getElementById('calendar');

const options = {
    defaultView: 'week',
    week: {
        //  startDayOfWeek: 1,
        hourStart: 8,
        hourEnd: 18,
        taskView: false
    }
};
const calendar = new Calendar(container, options);

Uncaught TypeError: Cannot destructure property 'top' of 'timeGridRows[endRowIndex]' as it is undefined.

Expected Behavior

Expect it to work like it does when hourStart and hourEnd is not defined, hopefully respecting the times.

@adhrinae
Copy link
Contributor

adhrinae commented Aug 9, 2022

@jstark518

Please check the 2.1.2 version whether the bug is fixed.

@jstark518
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 New versions Bug
Projects
None yet
2 participants