Closed k290 closed 5 years ago
Thank you for reporting this @k290 ,
I'll dig into this issue, but at first sight, it seems that the problem is with the custom propTypes validation function expecting to return an Error instead of throwing a new Error.
I'd greatly appreciate if you can share the project code.
@kspeyanski I have created a Minimal Example here: https://github.com/k290/kendo-timepicker-issue
You can just pull down the repo, and run annpm install
in the root directory.
Open the root folder in Visual Studio Code. If you open withValidation.component.tsx
you will see the error. The same error will be shown when you run webpack
in the root directory.
If you comment out the Timepicker component, you can run webpack
and run the project in a browser and see the component in action on an Autocomplete
Thank you for the providing the project, it really helped us track down the problem fast!
I've opened a PR and once it is published i will let you know.
Hello @k290,
The issue is now fixed, and has been published in our dev
channel.
Please, let us know if you encounter any other issues with the KendoReact components, and we will be happy to help!
Thank you
I'm submitting a...
Current behavior
I am having an issue with the TimePicker typescript typings. I am trying to create a React HOC in Typescript which handles the validation logic of all Kendo FormComponents . However, in the case of the TimePicker it is not allowing it to be assigned to a React.ComponentType. All other Kendo Form components are fine.
Minimal reproduction of the problem with instructions
Please see the following code
As you can see there is something wrong with the typings on the TimePicker:
Environment
Package versions: Kendo-React: 2.5 React: 16.7.18
System: