You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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
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.
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
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
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
The text was updated successfully, but these errors were encountered: