Skip to content

Checkbox not obeying parent fieldset disabled state #2763

@moniuch

Description

@moniuch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/checkboxfeatureThis issue represents a new feature or feature request rather than a bug or bug fixformsThis issue is related to Angular Forms integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions