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

NgbTimepicker, "TypeError: Cannot read property 'hour' of undefined" when [meridian]="true" and it is inside a <form> #1696

Closed
esistgut opened this issue Jul 21, 2017 · 0 comments

Comments

@esistgut
Copy link

esistgut commented Jul 21, 2017

Bug description:

This issue seems very similar to #1106
I'm opening another bug report because @pkozlowski-opensource asked me to do so.

When NgbTimepicker is put inside a form tag and [meridian] is set to "true" the error "TypeError: Cannot read property 'hour' of undefined" is displayed.
Removing the form tag or setting [meridian] to "false" will prevent the error from happening.

Link to minimally-working plunker that reproduces the issue:

http://plnkr.co/edit/5pQE9DcqgcpJDmpPUI0f

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 4.0.3

ng-bootstrap: 1.0.0-alpha.28

Bootstrap: 4.0.0-alpha.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants