Skip to content

MdDatepicker and MdDatepickerToggle should be disabled when its input associated is disabled (reactive forms) #6973

Closed
@rafaelss95

Description

@rafaelss95

Bug, feature request, or proposal:

Bug.

What is the expected behavior?

MdDatepicker and MdDatepickerToggle should be disabled when its input associated is disabled using ReactiveForms.

What is the current behavior?

MdDatepicker and MdDatepickerToggle aren't being disabled when its input associated is disabled using ReactiveForms.

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
https://plnkr.co/edit/9GaotKDxIFFDKkGpDess?p=info

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

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

_                      _                 ____ _     ___
 / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
/ ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
             |___/
@angular/cli: 1.4.1
node: 8.1.1
@angular/animations: 4.3.6
@angular/cdk: 2.0.0-beta.10
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/material: 2.0.0-beta.10
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/platform-server: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.1
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
typescript: 2.4.1

Is there anything else we should know?

It's working using Template Driven Forms, as you can see here... well almost 100%, see #6974.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentformsThis 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