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
Error when eventContent is providing domNodes as a view-specific option then switching to a view that does not have eventContent defined #6079
Comments
Thanks, confirmed. The bug seems to happen when https://codepen.io/acerix/pen/QWKJyPN?editors=0010 It can be fixed by supplying https://codepen.io/acerix/pen/PoGxNYo?editors=0010 Also reported in https://fullcalendar.freshdesk.com/a/tickets/2565 |
Hi, thanks for the update, after addition of default event content, we cannot see the error, but we have some logic written in dayCellDidMount in month view, and we see some dates are not called in dayCellDidMount in month view, when switched from week view to month view can u please look into this. |
reproduced. update repro. |
I thought I fixed this in 5.9.0 ... (updated repro) ... But as you can see in the new repro the content from one view makes its way into the other (along with some DOM mangling). I will fix in the next release. |
Confirmed. After update to 5.9 I cant reproduce bug. All is OK |
I fixed the JS error from happening back in July with v5.9.0, however, the domNodes were still not cleared when switching views. v5.10.0 fixes the entire problem. Updated repro: https://codepen.io/arshaw/pen/XWRENao?editors=0010 |
Reduced Test Case: https://codepen.io/divyask53/pen/QWKZYQq?editors=001
Bug Description
for example we have events on July 14 and July 18 2021, so move to Jan 10 – 16, 2021 range in week view
6)in console we get the below error
Uncaught TypeError: Cannot convert undefined or null to object
at slice ()
at Object.Yo [as render] (main.min.js:6)
at t.updateCustomContent (main.min.js:6)
at t.componentDidUpdate (main.min.js:6)
at t. (main.min.js:6)
at main.min.js:6
at Array.some ()
at main.min.js:6
at Array.some ()
at P (main.min.js:6)
Screenshot:
The text was updated successfully, but these errors were encountered: