question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error caused when scrolling to empty day

See original GitHub issue

Summary

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 screen shot 2017-05-16 at 17 30 48 day-error

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:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
craigcolescommented, May 17, 2017

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.

5reactions
daviddarnescommented, May 17, 2017

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found