kendo-vue icon indicating copy to clipboard operation
kendo-vue copied to clipboard

`MultiSelectTree` filter shows `[object Object]`

Open PindaPixel opened this issue 4 months ago • 1 comments

Describe the bug When closing and re-opening the dropdown filter and an item is selected, something calls the onfilterchange event with an object for its value.

To Reproduce Steps to reproduce the behavior:

https://www.telerik.com/kendo-vue-ui/components/dropdowns/multiselecttree/filtering/

  1. Select an item from the dropdown
  2. Close the dropdown
  3. Re-open the dropdown
  4. Observe the filter field

Expected behavior Filter should not be altered unexpectedly

Screenshots If applicable, add screenshots to help explain your problem. image

Browser

  • OS: Windows
  • Browser: Chrome
  • Version: 123

Additional context I've narrowed it down to the focusout and blur event types. Even though I explicitly ignore these events and do not alter my filter state variable, the text in the text input remains.

onFilterchange(event: { filter: FilterDescriptor; event: { event?: { type: string } } })
{
    // in the events where I would not expect filter to change, its type is object
    if (typeof event.filter.value !== "string")
    {
        // Even though I do not set my filter ref, the text input still shows `[object Object]` without actually filtering the items.
        return;
    }

    filter.value = event.filter;
}

PindaPixel avatar Apr 04 '24 13:04 PindaPixel

Hey @PindaPixel,

Thank you for reporting the issue. It's look like a valid bug indeed. Our team will fix it as soon as possible.

If you have any other questions, please don't hesitate to submit a ticket in our support system.

Greetings, Ivaylo

iadnonov avatar Apr 05 '24 06:04 iadnonov