Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Londovir opened this issue Mar 14, 2017 · 1 comment · Fixed by #3700
Closed

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

Londovir opened this issue Mar 14, 2017 · 1 comment · Fixed by #3700
Assignees
Labels
P2 The issue is important to a large percentage of users, with a workaround

Comments

@Londovir
Copy link

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?

@mmalerba mmalerba self-assigned this Mar 14, 2017
@mmalerba mmalerba added the P2 The issue is important to a large percentage of users, with a workaround label Mar 14, 2017
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants