Our powerful JS Calendar component


Post by farrukhwaseem »

Hi Team

Hope you are doing well, we encountered and issue. When we enable autorowheight, and move to Weeks view (by default month view is loading). It is adding attached error in the console recursively.
Can you please advise if its an issue or we are doing something wrong?

Thanks

Attachments
Error.png
Error.png (220.91 KiB) Viewed 389 times
Config.png
Config.png (165.21 KiB) Viewed 389 times

Post by Animal »

Looking quickly at it, I see "Dependencies.js:1913"?

How is it getting there? Try breaking the the onEventStoreDateRangeChange handler that you can see there in the stack trace and step through it to see what's happening.

autoRowHeight: true doesn't affect the week view, so that is a red herring. This looks like a loop in the data loading.


Post by Animal »

OK, it's the MonthView's autoRowHeight causing this. Here's the ticket, we'll get this fixed ASAP.


Post by Animal »

If you need to, you can add the fix as an Override to the MonthView class:

    syncShrinkwrappedRows() {
        if (this.isVisible) {
            const { shrinkwrappedRows } = this;

            for (let i = 0, { length } = shrinkwrappedRows; i < length; i++) {
                this.shrinkwrapWeekRow(shrinkwrappedRows[i], i === length - 1);
            }
        }
    }

Post Reply