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

[Bug] DropDownTree - Filter input looses focus while typing

Open ntziolis opened this issue 3 years ago • 3 comments

When using the DropDownTree component with [filterable]=true the filter input field looses focus while the user is typing in some situations.

Please note:

  • This issue can be observed happens in the official Kendo Demos for filtering for DropDownTree
    • This means user config error can be excluded as a root cause
  • The problem does not always appear, but seems to happen only in some circumstances
    • The repro below seems to trigger it each time, but if not try selecting / clearing / searching in different order
    • It will fail at some point
  • It does seem to have something todo with adding a character that results in no search results (but this is only an high level observation)
  • The issue also appears in the latest version of the packages

To Reproduce

  • Visit the Kendo demo site:
    https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/filtering/#toc-filtering-with-the-hierarchy-binding-directive
  • Select "Tables & Chairs" without searching
  • Click on the control again and type 'chat' in the filter input (which will result in zero results)
  • Now the filter input should have lost its focus

Expected behavior The filter input should not loose its focus while the user is typing.

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

Browser

  • OS: Windows 10 (latest)
  • Browser: Chrome / Edge
  • Version: latest

ntziolis avatar Oct 23 '21 14:10 ntziolis

Bump

Have any of you stumbled upon a workaround while we wait for the fix? 🤔

We currently avoid using the kendoDropDownTreeFlatBinding and instead have implemented our own recursive search method, hasChildren and fetchChrildren. The code would just be so much simpler if it worked 🤩

jswm-pfr avatar Dec 22 '23 14:12 jswm-pfr

Any update on this issue ?

jellehellmann avatar Feb 16 '24 07:02 jellehellmann

Update: As per #3644, in version 16.2.0 this should have been addressed, but only the error got hidden. Is there any timeframe for when we can expect the filtering to finally work properly while a value is selected?

KIMBUM avatar Jul 01 '24 14:07 KIMBUM

@KimBum The team has committed to resolving the issue and is included in our development plans. However, its delivery depends on internal prioritization and available capacity. We'll be updating the issue accordingly once the fix has been released as part of a develop version.

stnikolova avatar Jul 08 '24 10:07 stnikolova

Fixed in v16.4.0 of kendo-angular-dropdowns package.

slavenai avatar Jul 11 '24 07:07 slavenai