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

[Inputs, DropDowns, DateInputs] Using custom validator on a FormControl component with input and calling a method on the value of the control throws an error #4281

Closed
zstoyanova9 opened this issue Apr 25, 2024 · 1 comment

Comments

@zstoyanova9
Copy link

zstoyanova9 commented Apr 25, 2024

Describe the bug
When configuring a Kendo UI for Angular component that has an underlying input element as a FormControl and using a custom validator, in which a method is called for the value of this control, a "Cannot read properties of undefined (reading '{{name of method}}')" error is thrown in the console.

This is a regression introduced with v15.5.0.

To Reproduce
Open the following StackBlitz example that implements our TextBox component as a FormControl and observe the error in the console:
https://stackblitz.com/edit/angular-im2mgt-nl4jat

DateTimePicker example - https://stackblitz.com/edit/angular-bug-datetimepicker-xjnzga?file=src%2Fapp%2Fapp.component.ts

There is no such error when using the same configuration with the default HTML input element. Example: https://stackblitz.com/edit/angular-im2mgt-ugbjqg

Expected behavior
No error should be thrown when this configuration is used with a Kendo UI for Angular component.

Screenshots
image

@zstoyanova9 zstoyanova9 changed the title Using custom validator on a FormControl component with input and calling a method on the value of the control throws an error [Inputs, DropDowns] Using custom validator on a FormControl component with input and calling a method on the value of the control throws an error Apr 25, 2024
@yanmariomenev yanmariomenev changed the title [Inputs, DropDowns] Using custom validator on a FormControl component with input and calling a method on the value of the control throws an error [Inputs, DropDowns, DateInputs] Using custom validator on a FormControl component with input and calling a method on the value of the control throws an error Apr 30, 2024
@tswetti tswetti self-assigned this May 8, 2024
@tswetti
Copy link

tswetti commented May 16, 2024

Fixed in v16.0.0

@tswetti tswetti closed this as completed May 16, 2024
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

3 participants