Planned
Last Updated: 22 Jul 2020 08:36 by ADMIN
Matthew
Created on: 20 Jul 2020 16:13
Category: DropDownList
Type: Bug Report
0
DropDownList not firing change event on value change

https://dojo.telerik.com/iliKAqUr

  1. select "Oranges" from the dropdown
  2. press "Change value to 'Bananas'" button
  3. press "Sort" button
  4. select "Oranges" from the dropdown

Expected: should see two events for "Changed to Oranges" but only see one
Actual: status only shows one value change event from the first selection of "Oranges"

It seems this issue was introduced with the fix for https://github.com/telerik/kendo-ui-core/issues/4496

The introduction of _oldText in the _change method of kendo.list.js has introduced a flaw in the value change detection for DropDownList

The above dojo presents a way to short-circuit the issue since it is not easy to show the _oldText issue since the index check works as a fallback.

3 comments
ADMIN
Martin
Posted on: 22 Jul 2020 08:36

Hello Matthew,

My apologies for the misunderstanding.

The behavior is a bug and therefore I have converted this thread to a bug report, which you can track in our Feedback Portal on this link. The issue is logged with the highest priority so a fix should be available relatively soon.

As a small token of appreciation for reporting the behavior, I am updating your Telerik Points.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Matthew
Posted on: 21 Jul 2020 09:47
I'm not expecting the change to "Bananas" to trigger the change event. I'm expecting step 4 of my steps to reproduce to trigger the change. Step 4 is a user-triggered change from "Bananas" to "Oranges." Opening the dropdown and selected "Oranges" a second time should trigger the change event but doesn't because of the change made in kendo.list.js to track _oldText to fix a ComboBox issue.
ADMIN
Martin
Posted on: 21 Jul 2020 08:02

Hello Matthew,

As stated in the API reference for the value method, using it will not trigger the change event. You will need to do so manually. I have modified the example to reflect the change.

Let me know if that works for you, or if you have any further questions.

Regards,
Martin
Progress Telerik