-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Checkbox not obeying parent fieldset disabled state #2763
Comments
Not sure if related. But I encountered a bug when using FormControl.disable() |
I am having a similar issue. Calling disabled() disables the checkbox and it is grayed out. Calling enable() darkens the checkbox and it looks enabled, but you can't actually click on it any more. |
We are experiencing the same issue as well. Disabling the checkbox works as expected, but when it's enabled again it looks enabled but is not clickable. This is when using the FormControl.disable/enable(). Using the checkbox's [disabled]-binding works as expected though, so it is possible to use that as a workaround for now. |
this is a feature that should probably live in |
Seems to be tracked in angular/angular#13856. |
Closing this since the underlying issue is tracked on angular/angular#35309 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug: - but I am not sure it's a bug in your component or an incomplete accessor.
I have reported it here: angular/angular#13856
I am just looking out for answer how to implement disabling a component upon fieldset disabled change and whether it can be achieved with current API (Angular 2.4.4)
What is the expected behavior?
Component should be notified of its parent fieldset disabled state.
What is the current behavior?
What are the steps to reproduce?
See this forked plunker of your checkbox - please refer to the new section I created "Fieldset test": https://plnkr.co/edit/MmQU0KLVUMFSzFgwTK9t?p=preview
What is the use-case or motivation for changing an existing behavior?
Provide compliance with w3 standards.
Which versions of Angular, Material, OS, browsers are affected?
Angular 2.4.4, all browsers
Is there anything else we should know?
I haven't tested whether the misbehavior afects also other controls but I would guess so. It's probably the matter of the NG_VALUE_ACCESSOR shape.
The text was updated successfully, but these errors were encountered: