telerik / kendo-angular

Issue tracker - Kendo UI for Angular
http://www.telerik.com/kendo-angular-ui/
Other
463 stars 213 forks source link

[DropDownList] Error is thrown while filtering the component and the sticky header overlaps its matching group header #4339

Open zstoyanova9 opened 1 week ago

zstoyanova9 commented 1 week ago

Describe the bug When the DropDownList has filtering and grouping configured, then the component is scrolled so that the sticky header overlaps its matching group header, and filtering is performed in the input, the following error is thrown:

image

To Reproduce

  1. Open the following StackBlitz example - https://stackblitz.com/edit/angular-2kwjev-2c2kxv
  2. Open the DropDownList and scroll down to a position, at which the sticky header overlaps its matching group header.
  3. Filter the DropDownList by entering some value in the search input.

chrome_JziJd5NGDu

Expected behavior No error should be thrown when filtering at this specific scroll position of the DropDownList.

Additional context Based on the observed error, it seems that the issue comes from the findCurrentGroup() method of the ListComponent, and more particularly, the following line:

image