Skip to content

Support focus method on checkbox and radio inputs #1131

@divyakumarjain

Description

@divyakumarjain

Bug, feature request, or proposal:

Support focus method on checkbox and radio inputs

What is the expected behavior?

Calling focus method on MdCheckbox and MdRadioButton should change focus to these instance. Also other focusable items in browser should lose the focus.

What is the current behavior?

focus method does not exists on MdCheckbox and MdRadioButton thus get error such as focus is not a function

What are the steps to reproduce?

http://plnkr.co/edit/9RJ5DOuPMK8b3zPeR95J?p=preview

What is the use-case or motivation for changing an existing behavior?

Similar to MdInput there should be way to focus on elements. this can be used for focusing to element with validation error

Which versions of Angular, Material, OS, browsers are affected?

Was able to reproduce on both firefox and chrome.

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fixhelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions