DatePicker : When user enter the date manually the value getting appended with the previous value.

1 Answer 108 Views
DatePicker
Karthikeyan
Top achievements
Rank 1
Iron
Karthikeyan asked on 15 Jul 2021, 11:32 AM

Hi Team,

I'm facing below issue when manually enter the value in the datepicker.

Control : DatePicker

 <DatePicker defaultValue={value} format="dd/MM/yyyy"  />

Step 1: Manually I'm trying to enter the data as 01/01/2021

Step 2: Now try to change the date (day) by entering  "2".  (Our Expectation is system should display the date as 02/01/2021 instead it is appending the date and displaying as 12/01/2021)

 

If this is a feature can you please suggest as any alternative way to stop that feature.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Jul 2021, 12:51 PM

Hello, Karthikeyan,

Currently, this is the expected result.

This is because if in this case, we change the value to 02, the user will have no option to write 12. There are a couple of other approaches that can determine if this will be 02 or 12 based on the previous user actions, but those cases have their own limitations as well.

We can suggest logging a feature request to expose the selection change event. This will allow us to determine the previous selection and programmatically change the current behavior. If you wish I can also directly transfer this post to an official future request?

Regards,
Stefan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Karthikeyan
Top achievements
Rank 1
Iron
commented on 22 Jul 2021, 01:04 PM

Hi Team,

What is the procedure to raise "feature request".

Regards,
Karthikeyan Rajakumar
Stefan
Telerik team
commented on 22 Jul 2021, 01:28 PM

The feature requests can be logged here:

https://feedback.telerik.com/kendo-react-ui

I also have the ability the directly transfer this discussion from the forum to the feedback portal and make it a request instead of a question.
Tags
DatePicker
Asked by
Karthikeyan
Top achievements
Rank 1
Iron
Answers by
Stefan
Telerik team
Share this question
or