Error caused when scrolling to empty day
See original GitHub issueSummary
If you select a date with items and then scroll to an empty date the day
prop becomes undefined and causes an error. See screenshot / gif
P.S.
I’m also unable to set the renderEmptyDate
option within the component, all I see is a loading spinner. We’re using the following:
renderEmptyDate={() => { return (<Text>There are no events</Text>) }}
Any help would be appreciated, thanks for your time and effort
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Can't Scroll in Excel? Here Are Reasons and Easy Fixes!
You cannot scroll in Excel? Here are four different potential reasons and simple solutions! Try these and you will be able to scroll...
Read more >Finding/Fixing Unintended Body Overflow - CSS-Tricks
In some cases, there might be an element that is literally wider than the document is, which might cause horizontal overflow scrolling.
Read more >iPad Safari scrolling causes HTML elements to disappear and ...
Mobile Safari does not render the elements that are offscreen, or sometimes renders erratically, when using -webkit-overflow-scrolling: touch .
Read more >Resetting the scroll bar in Excel | Excel Off The Grid - YouTube
Want to automate Excel? Check out our training academy ☆ https://exceloffthegrid.com/academy☆ Read the full blog post ...
Read more >Fix unwanted horizontal scroll and whitespace with Overflow
Sometimes elements on a page can exist outside the viewport, and an unintended side effect can be horizontal or sideways scrolling that ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I would have to agree with @daviddarnes, and say that it should be render each day as empty by default. If you don’t pass any items to the component, and you click on a date from the calendar view, you are presented with a loading icon. Going by what has been said previously, we would have to generate all the days as empty arrays just to hide the loading icon.
@tautvilas hey, I just tried it now. The example uses a method to randomly generate events, but it also generates every ‘day’. So in the example some days are rendered as empty objects. I would’ve thought you wouldn’t need to render every day, and you can just populate the calendar with events?
I hope that makes sense?