kendo-ui-core
kendo-ui-core copied to clipboard
Calling value([]) in the deselect event of the MultiSelect doesn't remove all its items
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
- Open this Dojo and run it
- 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]