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

in 24h format, [value]="'00:15 AM'" gives an error when you open it (2.5.1) #28

Closed
caribou71 opened this issue Aug 15, 2018 · 1 comment

Comments

@caribou71
Copy link

use https://stackblitz.com/edit/angular-e2b8fw?file=src%2Fapp%2Fapp.component.html
put in html... [value]="'00:15 AM'" it display 00:15..thats perfect but when you click on it to change it...boum it crash...

preview-fe7237b13d780dbf847da.js:1 ERROR TypeError: Cannot read property 'time' of undefined
at NgxMaterialTimepickerFaceComponent.setClockHandPosition (ngx-material-timepicker-face.component.ts:157)
at NgxMaterialTimepickerFaceComponent.ngOnChanges (ngx-material-timepicker-face.component.ts:95)
at checkAndUpdateDirectiveInline (provider.ts:201)
at checkAndUpdateNodeInline (view.ts:429)
at checkAndUpdateNode (view.ts:389)
at debugCheckAndUpdateNode (services.ts:429)
at debugCheckDirectivesFn (services.ts:390)
at Object.eval [as updateDirectives] (VM1711 NgxMaterialTimepicker24HoursFaceComponent.ngfactory.js:54)
at Object.debugUpdateDirectives [as updateDirectives] (services.ts:384)
at checkAndUpdateView (view.ts:359)

@Agranom
Copy link
Owner

Agranom commented Aug 15, 2018

Fixed. Update to 2.5.2

@Agranom Agranom closed this as completed Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants