This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-autofocus does not work on md-menu-item > md-button #7868
Labels
has: Pull Request
A PR has been created to address this issue
Comments
The problem is, that
In my opinion, we should also support http://codepen.io/DevVersion/pen/BKPEBy I will mark this, as blocked by PR, because I would like to add the support for |
devversion
added
the
Blocked
Progress on this issue is blocked. Primarily used for PRs that are blocked by presubmit feedback.
label
Apr 24, 2016
@devversion - Agreed. Please add support. |
devversion
added
has: Pull Request
A PR has been created to address this issue
and removed
Blocked
Progress on this issue is blocked. Primarily used for PRs that are blocked by presubmit feedback.
labels
May 16, 2016
devversion
added a commit
to devversion/material
that referenced
this issue
May 16, 2016
* Currently, the most common components are supporting `md-autofocus`, except the `$mdMenu` component. `md-menu` did only support `md-menu-focus-target`, which was a unclear and undocumented attribute. * This commit adds support for the `md-autofocus` directive, to be consistent with the whole API. It also adds a documentation for the focus behavior in `md-menu`. Closes angular#7868.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using
md-autofocus
with an optional expression (e.g.md-autofocus="ctrl.a === ctrl.b"
) on anmd-button
that is the direct child of anmd-menu-item
, the_md-autofocus
class is applied to the compiled<button>
element, but when the menu opens, focus is given to the first item in the list anyway. It appears that themd-autofocus
attribute is completely disregarded in this case.Applying the
md-autofocus
to themd-menu-item
element itself does not work either. If it is intended behavior thatmd-autofocus
does not work for elements in anmd-menu
, this should be documented (and I'd like to know the reason why).The text was updated successfully, but these errors were encountered: