Approved
Last Updated: 10 Jul 2019 14:21 by Tharsis-it
Tharsis-it
Created on: 08 Jul 2019 14:14
Category: DropDownList
Type: Bug Report
1
Change event issue in DropDownList with initial value - MVVM context

Bug report

The change event is being triggered when having an initially selected item in the DropDownList and then open the DropDownList and click on the default selected item. This bug is represented only in MVVM.

Reproduction of the problem

  1. Open this Dojo and run it. The three cascading DropDownLists will have default selected items
  2. Click on the first DropDownList and select the already selected "Confections" option
  3. The other two DropDownLists will be reset because of the change event thrown in the first DropDownList

Current behavior

The change event of a DropDownList with initial data selected is being triggered when clicking on the already selected value.

Expected/desired behavior

Selecting the already selected item of a DropDownList shouldn't trigger its change event because there is no actual change in the component's value. Please check this Dojo for the expected behavior.

Environment

  • Kendo UI version: 2019.2.619
  • jQuery version: x.y
  • Browser: [all]
1 comment
Tharsis-it
Posted on: 10 Jul 2019 14:21
Just one more clarification.

The error occurs when you select the item that was already selected or when you click outside the dropdownlist, without selecting anything and the list of items is closed.