telerik / kendo-react

Issue tracker - KendoReact http://www.telerik.com/kendo-react-ui/
https://kendo-react-teal.vercel.app
Other
212 stars 39 forks source link

[Bug][Field][Form] DatePicker component fails to render within Field component #2485

Open Jotahflo opened 2 months ago

Jotahflo commented 2 months ago

I'm submitting a...

Bug report

Current behavior

The ‘DatePicker’ component from Kendo React does not render when used in the ‘component’ props of the ‘Field’ component. However, it works correctly when used outside of the ‘Field’, even if it is within the ‘Form’, and the ‘DateTimePicker’ component works fine when passed through the ‘component’ props, which has very similar functionality.

Expected behavior

The ‘DatePicker’ should render when passed through the ‘component’ props of the ‘Field’ component, allowing date selection without issues, just as it currently works with the ‘DateTimePicker’ component.

Minimal reproduction of the problem with instructions

The problem can be seen at the following link: https://stackblitz.com/edit/react-8ai7p4-pa48cn?file=app%2Fapp.tsx

What is the motivation or use case for changing the behavior?

The goal is to allow the use of the ‘DatePicker’ component when passed through the ‘component’ props of the ‘Field’ to maintain consistency and functionality in the application.

Environment

Browser:

PaskalevStoyan commented 2 months ago

Hi, @Jotahflo,

Thanks for bringing this to our attention. Indeed this is considered a bug. We will do our best to fix this as soon as possible.

Have a nice day!