You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/selectfeatureLabel used to distinguish feature request from other issues
User able to search/filter the options in a select
What is the current behavior?
User must scroll the select to find the desired option
What is the use-case or motivation for changing an existing behavior?
When there is a long list of options, it's not easy to find an option
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Latest Angular Material as of 12 July 2017
Is there anything else we should know?
This is different from autocomplete, autocomplete is a free-text input field.
I haven't found anything in Material Design related to this, but this could be an important feature
Reacted by Allan G, Shyamal Parikh, Thierry Fleury, Tom Välja, Vahur Teller, Guillaume de Jabrun, Nektarios Konstantinidis, David Virebayre, Hsu Hlaing, Michele Schäuble and 307 more
Reacted by Wellington Torrejais da Silva, Maks Nechesonov, Shan Surat, Vladyslav Karasov, Rusman Wahab, Makhele Sabata, Maria Filonova, Anthony Nahas, Moritz Cremer, Dominic Bachmann and 8 more
@xuanshenbo, have you try a function to validate selection of the md-autocomplete at the (blur) event? I know it's not exactly the user experience that you're looking for, but I think it's a nice workaround: https://plnkr.co/edit/HzJNtcNLdctAbfeHbWCs?p=preview
Reacted by Mohammad Kermani, Shenbo and Shan Surat
This is something we do plan on supporting eventually (similar to the md-select-header from AngularJS Material), but are still figuring out exactly how we want to implement it (the a11y is rather tricky).
Reacted by Allan G, Almar Schouten, Philipp Kief, David Virebayre, Michele Schäuble, Edric Chan, Coffee Boy, Esteban Gehring, Maximiliano Saavedra, Sam Lin and 9 more
This would be really useful, because currently md-select is veery poorly usable for long lists (e.g. country list) when compared to regular , because with the latter, you can hit the letter and jump to the items beginning with that letter. In md-select this is not an option and many developers are not willing to accept this as good UX in their applications :(
Reacted by Naveed Ahmed, atalie, Gabriel Boudreau, Nektarios Konstantinidis, David Virebayre, Michele Schäuble, Edric Chan, Coffee Boy, Phil Degenhardt, xeax and 22 more
Hey guys. Thanks for this great library of Material Components. Could you please add this feature in your roadmap? I believe it is important functionality, as most have already mentioned, and a must have in a long list. Also, it would be great if the filtering function could be defined by us (return true or false). @crisbeto@devversion@amcdnl@mmalerba@andrewseguin@jelbourn
Reacted by Maksym Kobieliev, Coffee Boy, developcodeza-matthew, sweetyv, Denes Papp, FSomme2s, shahid ahmad, Cem K, Anton Grekov, laviealon and 1 more
Indeed #7835 would be the way to implement search/filtering. @crisbeto is waiting for feedback before merging, so please give your feedback there if you have any.
I have implemented this capability as a wrapper around mat-autocomplete - and as a base class that can easily be reused to make visual variations. Repository and demo link below.
I am very interested in ideas in how I could reshape this work, in to the form of a component or similar thing to offer as a PR. Maybe the pair-of-functions that my solution uses, could be reshaped to something more like a mat-grid's DataSource ?
Reacted by svenhuber, Motassem Kassab, Nehal Damania, Jan-Erik Strøm, Adrián de la Rosa, Alberto Merino, Blair Jersyer, Anatolii, Muhammad Al Faris, Ali Dado and 40 more
Reacted by Lev Kovalenko
Reacted by Motassem Kassab, James Yu, Patrick Michalina, AndreEllrich, Wellington Torrejais da Silva and Michael Chambaud
Reacted by Motassem Kassab, Yavor Ivanov, James Yu, Mateo Casasbuenas Gómez, SadraRahmani, Vehans Ayvazi, Patrick Michalina, AndreEllrich, Mahmud Sazzad, Wellington Torrejais da Silva and 2 more
@macjohnny this is great! However, it has a strange behavior when using the "multiple" attribute of the mat-select. When filtering and then selecting a value from the filtered list, it overrides and removes the previously selected values, which is not the desired behavior.
@eyalhakim Thanks for your feedback. I added an example with [multiple]=true and adapted the implementation of the mat-select-search to fix the behavior you described in #5697 (comment)
when using the "multiple" attribute of the mat-select. When filtering and then selecting a value from the filtered list, it overrides and removes the previously selected values, which is not the desired behavior.
so now it should also work correctly with [multiple]=true
Any update on this since 2018? This is such a fundamental feature I'm very surprised Angular has not taken care of this as it is an otherwise great framework.
Reacted by Vlad Dumbrava, Alexandros Pappas, Moritz Cremer, Belan, Nicolas Gaignoux, Salomão Santana, alsantos-nowo, Raphael Bolliger, Melroy van den Berg, Pankaj Tiwari and 10 more
7 years... for a basic function. It's not hard to see why angular is so bad these days
Reacted by Zoran Ivancevic, aljazdolenc, Andrii Oriekhov, OneTube, Stas, sagarringe, HK, azri hasin, Mailson Teles Borges, makanaca and 1 more
Reacted by Joep Kockelkorn, Sylvain Dumont, keatkeat87, fatalcaron, Martín Hosman, Nora Simonow, Nicolas Loots, Enea Jahollari, Jared Poole, Daniel Kimmich and 3 more
Reacted by Vlad Dumbrava, Martín Hosman, Simón Sepúlveda Osses and Lehoczky Zoltán
8 years and counting. This feature really needs some attention!
Reacted by Saiyaff Farouk, aljazdolenc, Zoran Ivancevic, Àlex Vicente, DavideLanzoniSacmi, Arturo Silvelo, Marco Fedele , makanaca, Tiberiu Zuld, Giovanni Guarino and 11 more
However, this is not an Angular Material component; we need to install an additional package, npm install @angular/aria and it doesn't have any styles.
Well, autocomplete and searchable select box are not the same thing. Even if you use requireSelection there are still (subtle) differences in how the component is used.
Even if you use requireSelection there are still (subtle) differences in how the component is used.
@JanProchy would you elaborate these subtle differences? I dont get the difference between a filterable mat select and an autocomplete with requireSelection, nor do I get the difference between the autocomplete and combobox mentioned in angular/aria
@passee sure, so lets take these sources as examples. Searchable select box is not provided by Anuglar Material so we will compare it with the ngx-mat-select-search and i modified the source values for angular autocomplete to be the same as for ngx-mat-select-search
in autocomplete nothing happend (you need to hit arrow down and then enter)
in select the only availabel value is selected
then lets say you want to change the value, so you click to the control again
in autocomplete you have the selected value as free editable string. So if you want to change the value, you need to clear it first (press and hold backspace, or select all and delete, etc..) and then start searching for the new value
in select you can start searching for the option imediately
then lets say during the searching for new option you changed your mind and you want to keep previous value
in autocomplete you leave the control (blur event) and the value is reseted to empty (no match between searched string and option list)
in select the previously selected value is back
I think you could find much more of these subtle differences, which all comes from the fact, that autocomplete in core is a string input with some "hints" to help you, but select box is list of read-only values with a separate search field to filter them out.
...autocomplete in core is a string input with some "hints" to help you, but select box is list of read-only values with a separate search field to filter them out.
Great points -- I think this part is key. The way I see it:
Autocomplete: Like an enhanced textbox. It accepts any string from the user, but has the ability to help them find a string they might want, or "finish typing" their string for them.
Combobox: Like an enhanced dropdown box. It presents a set of valid options to the user, but has the ability to help them quickly find the one they want by typing (better than the native dropdown box does, anyway).
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/selectfeatureLabel used to distinguish feature request from other issues
Activity
julianobrasil commentedon Jul 12, 2017
@xuanshenbo, have you try a function to validate selection of the md-autocomplete at the
(blur)event? I know it's not exactly the user experience that you're looking for, but I think it's a nice workaround: https://plnkr.co/edit/HzJNtcNLdctAbfeHbWCs?p=previewjelbourn commentedon Jul 13, 2017
This is something we do plan on supporting eventually (similar to the
md-select-headerfrom AngularJS Material), but are still figuring out exactly how we want to implement it (the a11y is rather tricky).lightheaded commentedon Aug 3, 2017
This would be really useful, because currently md-select is veery poorly usable for long lists (e.g. country list) when compared to regular , because with the latter, you can hit the letter and jump to the items beginning with that letter. In md-select this is not an option and many developers are not willing to accept this as good UX in their applications :(
nekkon commentedon Oct 30, 2017
Hey guys. Thanks for this great library of Material Components. Could you please add this feature in your roadmap? I believe it is important functionality, as most have already mentioned, and a must have in a long list. Also, it would be great if the filtering function could be defined by us (return true or false). @crisbeto @devversion @amcdnl @mmalerba @andrewseguin @jelbourn
julianobrasil commentedon Oct 30, 2017
@nekkon, it looks like it'll be possible soon: #7835
jrood commentedon Dec 6, 2017
Indeed #7835 would be the way to implement search/filtering. @crisbeto is waiting for feedback before merging, so please give your feedback there if you have any.
kylecordes commentedon Dec 23, 2017
I have implemented this capability as a wrapper around mat-autocomplete - and as a base class that can easily be reused to make visual variations. Repository and demo link below.
https://github.com/OasisDigital/angular-material-obs-autocomplete
https://oasisdigital.github.io/angular-material-obs-autocomplete/
I am very interested in ideas in how I could reshape this work, in to the form of a component or similar thing to offer as a PR. Maybe the pair-of-functions that my solution uses, could be reshaped to something more like a mat-grid's DataSource ?
macjohnny commentedon Feb 12, 2018
Here is an implementation using mat-select:https://mat-select-search.stackblitz.io
Code: https://stackblitz.com/edit/mat-select-search?file=app%2Fmat-select-search%2Fmat-select-search.component.ts
See https://github.com/bithost-gmbh/ngx-mat-select-search

@jelbourn @crisbeto might this be worth filing as a PR once #2812 / #7835 is ready?
eyalhakim commentedon Feb 12, 2018
@macjohnny this is great! However, it has a strange behavior when using the "multiple" attribute of the mat-select. When filtering and then selecting a value from the filtered list, it overrides and removes the previously selected values, which is not the desired behavior.
Other then that it's great!
macjohnny commentedon Feb 13, 2018
@eyalhakim Thanks for your feedback. I added an example with
[multiple]=trueand adapted the implementation of themat-select-searchto fix the behavior you described in #5697 (comment)so now it should also work correctly with
[multiple]=trueeyalhakim commentedon Feb 13, 2018
@macjohnny works perfectly! thank you.
I would also suggest using
<mat-icon>close</mat-icon>for clearing the filter.Would appreciate if you release this as an npm package.
56 remaining items
laviealon commentedon Jan 17, 2024
Any update on this since 2018? This is such a fundamental feature I'm very surprised Angular has not taken care of this as it is an otherwise great framework.
I will be using ngx-mat-select-search for the time being.
aljazdolenc commentedon Mar 31, 2024
Any movement or plans to move this forward?
lance2k commentedon Apr 15, 2024
Same, will be using ngx-mat-select-search for the time being.
jicedtea commentedon Jul 8, 2024
7 years... for a basic function. It's not hard to see why angular is so bad these days
mehaxan commentedon Dec 20, 2024
not related to angular I guess. there's tons of libraries you can use in your project. Angular and Angular Material is not the same, right?
JanProchy commentedon Jan 9, 2025
We would really love this. 🙏
avicarpio commentedon May 26, 2025
Any news on this?
saiyaff commentedon Jun 16, 2025
8 years and counting. This feature really needs some attention!
eneajaho commentedon Nov 20, 2025
Not related to Material, but to Angular itself. There is now a supported way in Angular Aria for this feature
https://angular.dev/guide/aria/combobox#dialog-popup
XhstormR commentedon Dec 17, 2025
The autocomplete component should be used:
https://angular.dev/guide/aria/autocomplete
https://material.angular.dev/components/autocomplete/examples
However, this is not an Angular Material component; we need to install an additional package,
npm install @angular/ariaand it doesn't have any styles.Keorl commentedon Dec 17, 2025
Label : P3, important but not urgent. How many years can "but not urgent" justify ?
JanProchy commentedon Dec 19, 2025
Well, autocomplete and searchable select box are not the same thing. Even if you use
requireSelectionthere are still (subtle) differences in how the component is used.passee commentedon Jan 13, 2026
@JanProchy would you elaborate these subtle differences? I dont get the difference between a filterable mat select and an autocomplete with requireSelection, nor do I get the difference between the autocomplete and combobox mentioned in angular/aria
JanProchy commentedon Jan 13, 2026
@passee sure, so lets take these sources as examples. Searchable select box is not provided by Anuglar Material so we will compare it with the ngx-mat-select-search and i modified the source values for angular autocomplete to be the same as for ngx-mat-select-search
Now lets try these things in both controls:
I think you could find much more of these subtle differences, which all comes from the fact, that autocomplete in core is a string input with some "hints" to help you, but select box is list of read-only values with a separate search field to filter them out.
Andrew-Marks-Trisept commentedon Jan 13, 2026
Great points -- I think this part is key. The way I see it:
Autocomplete: Like an enhanced textbox. It accepts any string from the user, but has the ability to help them find a string they might want, or "finish typing" their string for them.
Combobox: Like an enhanced dropdown box. It presents a set of valid options to the user, but has the ability to help them quickly find the one they want by typing (better than the native dropdown box does, anyway).