Completed
Last Updated: 13 Sep 2024 12:16 by ADMIN
Release 2024 Q3 (Aug)
Aleksey
Created on: 05 Aug 2024 16:06
Category: DateRangePicker
Type: Bug Report
0
incorrect range when dates removed manually

Hi,

There might be an issue with the DateRangePicker - when dates are removed manually from inputs (e.g., select, then delete) and something like month/day/year is displayed, incorrect dates are returned when I use API.

var range = daterangepicker.range()

The issue can be reproduced in the DateRangePicker demo page. Steps to reproduce:

  1. Open the page the jQuery DateRangePicker API page.
  2. Click SET VALUE to assign some predefined values. Correct values are displayed in the widget.
  3. Click GET VALUE and correct values are displayed in the popup (alert).
  4. Clear inputs manually in the widget (clear the Start date first, then End date), so both inputs display month/day/year now.
  5. Click GET VALUE again. Now, values are incorrect. Start is null and End displays the previously selected date, not null as expected.
    (If you clear End date first, then End Date would be null, and Start Date would be the previous value.)
    See the attached screenshot.

Is it a bug or I do something wrong? I am using 2024.1.3016. Is it fixed in the latest version? If not - any timeframe when it could be fixed? 

As of now I am using workaround - if an input value contains a letter, the then I assume date = null. Otherwise, I keep the value from range object. Is there a better way to work around the issue?

Thank you.

Regards, 

Aleksey Gasnikov

 

1 comment
ADMIN
Nikolay
Posted on: 06 Aug 2024 10:30

Hi Aleksey,

I converted this thread into a bug report as this is indeed a bug. You can track its progress at the below link:

https://github.com/telerik/kendo-ui-core/issues/7927

As a token of gratitude for repoerint this I have added some Telerik points to your account.

Regards,
Nikolay
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024