valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
676 stars 588 forks source link

Autocomplete filter filters out some elements incorrectly for children items #915

Open pista opened 6 years ago

pista commented 6 years ago

Create an ng-select with children elements and add to one of the children item lists these consequtive labels:

nothingHello Hello

Now try to filter via autocomplete, type "He". The "Hello" will not be displayed.

pista commented 6 years ago

The bug is similar for this one https://github.com/valor-software/ng2-select/issues/356 and there was actually a PR fixing this for non-child items (GenericBehavior), so I'll do the same in ChildrenBehavior.