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.

Calendar days in Agenda component works fine in debug mode but seems disabled/grayed out in normal mode

See original GitHub issue

Observing on Android simulator that the dates in the calendar of the agenda component seems disabled and non-interactive in normal mode but seems to be working fine in debug mode. In normal mode, pressing on any of the calendar dates does not change the agenda list nor re-render the list. Dates are grayed out and does not respond to the bound onDayPress either.

<Agenda items={this.state.items} loadItemsForMonth={this.loadItems.bind(this)} selected={this._timeToString(new Date())} renderItem={this.renderItem.bind(this)} renderEmptyDate={this.renderEmptyDate.bind(this)} rowHasChanged={this.rowHasChanged.bind(this)} minDate={'2018-1-1'} />

Debug mode has dates enabled:

debug mode

Normal mode has dates disabled:

normal mode

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
tonyneel923commented, Apr 23, 2018

I can not even use the agenda when not in debug mode. If in normal mode I get undefined is not an object days[0].clone.

Anyone see this?

0reactions
yangy46commented, Jul 7, 2018

Not bringing this back from dead but figured I’d comment back to help others experiencing same issue. The root cause for the initial posted issue is because the agenda component didn’t like the minDate ‘2018-1-1’. Component seems to be expecting two digit month and dates… ie: YYYY-MM-DD. After setting min date to ‘2018-01-01’ the calendar days were active again. What is still strange is that this is only an issue in normal mode, in debug mode things work fine.

@tonyneel923 - I also observed that error and was able to resolve it by ensuring that all dates I had in the items were fully formatted as YYYY-MM-DD.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Calendar days in CalendarList component of react-native ...
Calendar days in CalendarList component of react-native-calendars npm module seems disabled/grayed out in normal mode but works fine in debug ...
Read more >
Debug Menu Grayed Out | Apple Developer Forums
The class is starting to get into some debugging stuff and I noticed my debug dropdown is all grayed out and unusable, as...
Read more >
JAMS 7.X User Guide
Description - This optional property appears in menus, lists and reports and ... Debug. Determines if Job(s) will run in Debug Mode. When...
Read more >
Android 13 changelog: A deep dive by Mishaal Rahman
One-handed mode is disabled by default in AOSP but can be enabled with 'setprop ... The tile is grayed out if no component...
Read more >
Cisco DCNM LAN Fabric Configuration Guide, Release 11.5(x)
This option is disabled by default, and it is be grayed out if the replication mode is Ingress. Here are the examples of...
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