Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar Toggle AM/PM is broken #438

Closed
ZacharyRLewis opened this issue Jun 5, 2018 · 0 comments
Closed

Calendar Toggle AM/PM is broken #438

ZacharyRLewis opened this issue Jun 5, 2018 · 0 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@ZacharyRLewis
Copy link

The toggleAMPM function calls updateTime without a time, so toggling between AM/PM throws the following error: Cannot read property 'hour' of undefined

Uncaught TypeError: Cannot read property 'hour' of undefined
at Calendar.updateTime (Calendar.js:758)
at Calendar.toggleAMPM (Calendar.js:777)
at HTMLUnknownElement.callCallback (react-dom.development.js:542)
at Object.invokeGuardedCallbackDev (react-dom.development.js:581)

this.updateTime(event);

I've tested, and this happens in versions 1.4.0, 1.5.2, 1.5.3, and even in the latest 1.6.0 release candidate.

@mertsincan mertsincan self-assigned this Jun 13, 2018
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Jun 13, 2018
@mertsincan mertsincan added this to the 1.6.1 milestone Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants