-
Notifications
You must be signed in to change notification settings - Fork 161
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
igx-date-picker doesn't seems to be working with reactive form #8919
Labels
Comments
@umermalik129 we are not supporting version 7.x.x, can you try with newer version, like 11.0.13? We are also doing a refactoring on the component #6483 . |
@Lipata sorry I mentioned the wrong version, the correct version is |
@umermalik129 we are fixing that with the refactoring of the component #6483. |
ok Thank you |
There has been no recent activity and this issue has been marked inactive. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Question
I am having trouble with the date picker component when I use it with reactive form, I am setting formControlName and getting the following error
ERROR TypeError: value.toLocaleDateString is not a function
date.component.html
<igx-date-picker [weekStart]="weekStart" [formControlName]="field.protocolDictId" [id]="field.id"> <label igxLabel>{{field.labelText !== '' ? field.labelText : field.name}}</label> </igx-date-picker>
date.component.ts
const required = this.field.required ? [Validators.required] : null; this.form.addControl(this.field.protocolDictId, new FormControl(new Date(Date.now()), {validators: required, updateOn: 'blur'}));
I have the same code working for other ignite components but having a problem with date-picker component
The text was updated successfully, but these errors were encountered: