md-select + div:hover
Hey guys! I'm new in AngularJS and I have a issue with md-select from Angular Material. So, in this div (select-wrapper), that is displayed on mice hover, I added a md-select component. When the cursor is positioned on md-select, the div (select-wrapper) get mice hover out. I realize that another component is displayed in the last lines of my code, when I click on md-select component. How can I fix this!? Could you guys help me?
This is my code: http://codepen.io/anon/pen/OyWMdK
:+1:
So, you'll probably need to use a bit of JS to make this happen rather than pure CSS. I would look at using the ng-mouseenter and ng-mouseleave directives on your DIV and having those fire a method on your scope/controller that checks whether the select is open (if open, don't close the div).
You may also want to look at the docs for select, particularly the md-on-close as you may want to close your div when the select closes.
In general, this type of question is best asked/answered on the forum rather than on GitHub where we track bugs/issues.
@topherfangio, could you suggest a implementation of this feature?
@topherfangio, thank you for help me. I'm almost there using the directives that you suggest.
@topherfangio, me and @rafamardegan ended up fixing the issue with these directives shown on this codepen.
http://codepen.io/anon/pen/ojBEEV
@topherfangio, again... thank you!
Keep in mind that UI treatment is totally inaccessible to keyboard and screen reader users. Perhaps you could put tabindex="0" on the wrapper and expose it on focus? Though I'm not sure what the role for that element would be, since it has a select in it. Maybe treat it like a dialog?