My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2505: Hidden calendar, API calls should silently fail
1 person starred this issue and may be notified of changes. Back to list
Status:  ExportedToGithub
Owner:  ----
Closed:  Aug 2015


Sign in to add a comment
 
Reported by sil...@gmail.com, May 13, 2015
Description: 

A calendar is created inside a container div with display:none. Calling the select method on the calendar causes the js error 'TypeError: offsets is null'. Setting the container's display to block, and calling render on the calendar eliminates the error on subsequent calls to select.

Steps to reproduce:

See https://jsfiddle.net/j8u9bzdL/

The example sets up a calendar inside a hidden div, along with two buttons. The 'Toggle' button shows/hides the container div, and renders the calendar. The 'Select' button calls the calendar's select method with a pair of dates.

1. Click 'Select'. Note the js error 'TypeError: offsets is null' in the console window.
2. Click 'Toggle'. The calendar is now shown.
3. Click 'Select'. Note that there is no error in the console window.
4. Click 'Toggle'. The calendar is now hidden.
5. Click 'Select'. Note that there is no error in the console window.

All subsequent calls to select will succeed, regardless of whether the calendar is hidden or not.

May 26, 2015
Project Member #1 adamrs...@gmail.com
API methods calls that result in rendering of things on the calendar should silently fail and, when the calendar is finally rendered, the results of the API calls should be rendered upon initial successful render of the calendar.
Summary: Hidden calendar, API calls should silently fail (was: Calendar in hidden div, js error when select called)
Status: Accepted
Labels: Type-Feature
Aug 20, 2015
Project Member #2 adamrs...@gmail.com
Discussion for this issue has moved to the following URL:
https://github.com/fullcalendar/fullcalendar/issues/2770

This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event.

Happy coding,
Adam
Status: ExportedToGithub
Sign in to add a comment

Powered by Google Project Hosting