Skip to content

[disabled] not working on mdInput embedded within md-radio-group #3597

Closed

Description

@Londovir

Bug, feature request, or proposal:

Bug: When an input element is embedded within an md-radio-group (such as for a text input that collects a required description of an "Other" option in a radio button list), the attribute binding of [disabled] does not work, In addition, the application of disabled (without the bracketing) also does not work.

What is the expected behavior?

[disabled] binding works correctly by toggling the editing state of the input element.

What is the current behavior?

[disabled] binding is not working at all.

What are the steps to reproduce?

Embed an mdInput text input inside of an md-radio-group element, whether inside or outside of an md-radio-button element.
Plunker: http://plnkr.co/edit/eeVnrxSjCk04ve61SHkx

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

Enable the use of the [disabled] binding. In this particular use case, the user must choose among 4-5 mutually exclusive options, some of which may require the input of a piece of text information that is required if that associated option is selected. If another option is selected, the text box should be disabled so that users do not fill in the information.

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

Angular: 2.4.9
Material: 2.0.0-beta.2
OS: Windows 10
Browsers: Chrome/IE11/Edge

Is there anything else we should know?

Activity

  1. self-assigned this
    on Mar 14, 2017
  2. added
    P2
    on Mar 14, 2017
  3. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  4. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions