mdSelect: Add select component
The mdSelect is a type of Material Design Menu that behaves like and resembles a <select>.

Functional requirements
- Menu should be positioned over their "emitting" elements, establishing context - The selected menu item should not be shown as a duplicate when expanded - Dismiss menu by selecting an item (unless selecting multiple), tapping outside the menu, or using the Escape key - Menu animates out from emitting item when expandingAccessibility requirements
- **mdSelect element** - `[aria-live="polite"]` makes sure selections are announced in a screen reader. Copy list item text to button only when selection is made with enter/space key, or click (not arrow keys). That way it won't read aloud twice. - **Button element** - `[aria-haspopup="true"]` indicates button launches associated input - `[aria-controls="_listID_"]` links button to options list - Needs unique ID for pairing with list - **Unordered list** - [`role="menu"`](http://www.w3.org/TR/wai-aria/roles#menu) to communicate purpose of list - `aria-labelledby="_buttonID_"` to pair with button element - `aria-expanded="true | false"` to indicate when associated panel is expanded - Unique ID for pairing with button - `tabindex="-1"`to script focus but remove from tab order - **Child list items** - [`role="menuitem"`](http://www.w3.org/TR/wai-aria/roles#menuitem) on each child item - `tabIndex="-1"` for scriptingResources
- [WAI-ARIA Listbox](http://www.w3.org/TR/wai-aria/roles#listbox) - [Using "listbox" and "option" roles vs. "menu" and "menuitem"](http://www.marcozehe.de/2014/03/11/easy-aria-tip-7-use-listbox-and-option-roles-when-constructing-autocomplete-lists/)
@marcysutton @ajoslin @ThomasBurleson isn't an alpha/beta/rc the perfect place to have an almost completely functioning component and get the bugs out by releasing a few more rc's? When it was released initially I already reported 1 bug, and it was a quick fix that could have been merged in with 2-3 other fixes and another rc could have been released. Once 4-5 rc's were released, you guys could have been confident that there were few and possibly even no bugs and could have already started working on 0.8.1 or 0.9.0. I think the ngMaterial release system could be a lot better in terms of releasing more beta releases very frequently every few days and actually having no bugs in the real release 1-2 weeks later.
@ilanbiala the component was not ready for public consumption but it will be out there soon. Please respect our process and release cycle.
@marcysutton The whole point of an alpha/beta/rc is that there are some kinks/bugs and it isn't ready for public consumption.
I wasn't bossing you around or disrespecting your release cycle, but I'm trying to give you some suggestions based on how the rest of the community does it and how successful it is. Take a look at AngularJS. The project consistently has new features and bug fixes in the rc releases for a new version (which may break and are probably not ready for public consumption in an enterprise environment). Take a look at Ember.js, which also has multiple rc releases and adds features, fixes bugs, and makes changes all while letting people use definitely-not-ready-for-public-consumption code. Both are extremely popular frameworks and they release multiple minor versions and test releases (Angular releases up to 20 minor releases and test releases each and Ember releases about 10 of each as well).
My whole point is that while the release process now is okay, it could be much better just by having more test releases to ensure the ones for public consumption don't have 100 issues and don't require as much code refactoring later on when it is much more challenging because multiple parts use the same helper. Even gradually getting to that point is fine, but just jumping from 0.7.1 to 0.8.0 with lots of bug fixes kind of defeats the purpose of semver. The beauty of ~0.7.0 is that I expect that version to become more stable as time goes on, but if the package only has 0.7.0 and 0.7.1 and the rest of the fixes go into 0.8.0, that means now I have to take on other breaking changes just to get the fixes I expected to get in that version.
I'm not trying to be mean; I'm just trying to make ngMaterial better. I'm trying to give completely constructive feedback based on what big frameworks and commonly used packages do to avoid headaches and make development easier.
@ilanbiala I'm excited about the just-around-the-corner maturity of this beautiful project too, but I do think it's wise not to release unfinished components, especially in this case. If I understand right, md-select has not yet been made accessible. Let's say everything else is working, though. By its nature, many developers won't even realize that accessibility is absent, so I think the reasoning for holding off is sound: releasing superficially complete but as-yet inaccessible components for a ui system poised for widespread adoption could have a pernicious effect. I'm grateful this team has such high standards.
It is team's sole decision whether or not a given component is ready to be released and tested by developers or not. There is a certain period in the project when the community feedback is certainly beneficial, but there are times when such feedback is just going to be a burdern, distracting the progress. I guess the mdSelect is in the latter phase right now and we need to respect the team's decision regardless how much we are eager to see this baby brought to the world.
@bathos If I use any other select right now it is inaccessible anyway, so it doesn't hurt by not using mdSelect. I can't find any specific mention that enhanced accessibility (or lack thereof) was the issue in the initial release.
@demisx that's completely fine, but my whole thing isn't just about a feature anyway. And mdSelect even without accessibility is probably more accessible than most other options, so it doesn't hurt...
My whole point is that while the release process now is okay, it could be much better just by having more test releases to ensure the ones for public consumption don't have 100 issues and don't require as much code refactoring later on when it is much more challenging because multiple parts use the same helper. Even gradually getting to that point is fine, but just jumping from 0.7.1 to 0.8.0 with lots of bug fixes kind of defeats the purpose of semver. The beauty of ~0.7.0 is that I expect that version to become more stable as time goes on, but if the package only has 0.7.0 and 0.7.1 and the rest of the fixes go into 0.8.0, that means now I have to take on other breaking changes just to get the fixes I expected to get in that version.
@demisx also if you were doing something that could be done a lot better and could end up a lot better for everyone, would you say that I should just not give feedback?
@ilanbiala - I must insist that you relegate these types of conversations to the Angular Material Forum. Our GitHub Issue board is focused on community bug reports and feature requests.
@ilanbiala they're not asking if their process makes sense, they're asking you to take the discussion there and keep feature requests and bug reports here. This issue pertains exclusively to the mdSelect component, not about their development process or release cycle. Certainly they weren't asking whether or not it was more maintenance, either, as it's their project and they've chosen to manage it this way.
The least you could do is listen to them and stop notifying those of us who are simply waiting for the mdSelect component to get merged with your complaints about their project management style.
Landing in RC2, shipping later today :beers:
:+1: Canceling my date tonight.
Woohoo! :key: feature! Thanks for all of the hard work.
thank you for all your hard work! a congratulatory beer is in order, just stop by my tavern ;)
Huh I've been waiting for this! Thank you guys! :)
This made me laugh.
On Thursday, February 19, 2015, Dmitri Moore [email protected] wrote:
[image: :+1:] Canceling my date tonight.
— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/276#issuecomment-75129192.
Thomas Burleson Mindspace LLC
http://www.gridlinked.info http://www.linkedin/in/ThomasBurleson https://github.com/ThomasBurleson
I am playing with md-select on master. It looks great! I have couple of questions.
How can I get notified when user changes value? Is there an equivalent of select/ng-change?
I tried to add label on top of md-select but it shows up below md-select for some reason. Is label not supported for md-select?
@soichih you could use $watch https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$watch
Hello, this issue is now closed. Please use the ngMaterial Forum to ask questions. New issues should be opened separately. Thank you!
Another bug on current master version; Steps to reproduce:
- Place
md-selectinside amd-dialog - Open dialog
- Open select
- Click somewhere outside the dialog to have it removed
- Observe select is still open in the middle of the screen
Edit: I can create a separate issue for that if preferable.
I can confirm the same issue as @DmitryEfimenko has described (same steps) but instead of md-dialog I'm using an angular modal.
Hi,
I am using md-select inside a div. The div expands / collapse on click but when I open the md-select dialog the div is expanded / collapsed too which is unwanted. How can I stop the click event to propagate from the md-select component?
Thanks!