Skip to content

MultiSelect's dropdown items remain filtered on clearing filter text through clear button #4469

@kdelarue

Description

@kdelarue

Bug report

If some text is written to filter items and then the clear button is clicked, the text is deleted, but the filtered results remain visible.

Reproduction of the problem

  1. Go to https://demos.telerik.com/kendo-ui/multiselect/events
  2. Type asdf in the MultiSelect - No data found is displayed in the dropdown.
  3. Click on Clear button - filter text is deleted.

Current behavior

No data found is displayed, although there is no text in the input.

Expected/desired behavior

All items are visible, as there is no filter applied in the input.
NOTE: If the filter text is cleared by backspace or delete button, all items are visible as expected.
NOTE: Currently clicking on MultiSelect's input clears the filter.

Workaround

Handle the click of the clear button and call MultiSelect's search method with empty string - Dojo snippet :

        $(".k-multiselect .k-clear-value").click(function() {
          var multiselect = $("#products").data("kendoMultiSelect");
          multiselect.search("");
        })

Thus, the popup shows all items as expected.

Environment

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions