Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Example about mat-optgroup inside mat-autocomplete #10196
Bug, feature request, or proposal:
What is the expected behavior?
Having an working example of this code :
What is the current behavior?
No stackblitz or demo. And it's not easy to understand... because for the "mat-optgroup" you need (implicitly ?) to go to the "Select" component section, and with a group structure (eg: pokemonGroups) the autocomplete filter (eg: filteredOptions: Observable<string>;) doesn't work anymore.
What are the steps to reproduce?
What is the use-case or motivation for changing an existing behavior?
Having a autocomplete input with group.
Like this for example
Input : "d" <---------- autocomplete
@WizardPC, I forked and completed your
I'd say that it should only filter the options @raygervais, the groups are only used for grouping similar results together. Here's an example from our demo app that does the same: https://github.com/angular/material2/blob/master/src/demo-app/autocomplete/autocomplete-demo.ts#L131