kendo-vue
kendo-vue copied to clipboard
`MultiSelectTree` filter shows `[object Object]`
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/
- Select an item from the dropdown
- Close the dropdown
- Re-open the dropdown
- Observe the filter field
Expected behavior Filter should not be altered unexpectedly
Screenshots
If applicable, add screenshots to help explain your problem.
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;
}
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