| Issue 2505: | Hidden calendar, API calls should silently fail | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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.
Aug 20, 2015
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 |
Status: Accepted
Labels: Type-Feature