kendo-ui-core icon indicating copy to clipboard operation
kendo-ui-core copied to clipboard

Calling value([]) in the deselect event of the MultiSelect doesn't remove all its items

Open PekoPPT opened this issue 4 years ago • 0 comments

Bug report

When an empty array is passed to the MultiSelect's value method inside the deselect event, the item that is deselected remains selected in the MultiSelect.

Reproduction of the problem

  1. Open this Dojo and run it
  2. Expand MultiSelect's popup list and click on "All" item.

Current behavior

The different MultiSelect items are deselected except for the "All" item.

*If the "if" statement is removed from the deselect event function in the Dojo, and only the 'e.sender.value([]);' is kept, the issue is reproducing no matter of the selected item in MultiSelect's popup.

Expected/desired behavior

Calling 'e.sender.value([]);' should remove all items selected in the MultiSelect. Click on the "Clear values" button to see the expected behavior.

Environment

  • Kendo UI version: 2023.3.1114
  • Browser: [all]

PekoPPT avatar Jun 17 '20 10:06 PekoPPT