Skip to content

Incorrect k-selected class remains on the first dropdown item of virtual DropDownList when using jQuery 3.4.1+ and setting value through value method #6567

@martintabakov

Description

@martintabakov

Bug report

In a virtual DropDownList with a value set, the first item is marked as selected as well. The issue occurs when using jQuery 3.4.1 or later.

Reproduction of the problem

  1. Open this Dojo example. - https://dojo.telerik.com/@[email protected]/UkOmiYEj
  2. Open the DropDownList.

Second Dojo example, with the DropDownList as editor - https://dojo.telerik.com/@[email protected]/agAYiliz

Current behavior

Two items are marked as selected.

Expected/desired behavior

Only the item with value 3 should appear as selected.

Environment

  • Kendo UI version: 2021.3.914
  • **jQuery version: 3.4.1 and later
  • Browser: [all]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions