Skip to content

[mdDatepickerToggle] Error in compatibility mode in v2.0.0-beta.10 #6942

Closed
@aatkin

Description

@aatkin

Bug, feature request, or proposal:

Bug

What is the expected behavior?

mat-datepicker-toggle should render button correctly in compatibility mode.

What is the current behavior?

Error is thrown when rendering mat-datepicker-toggle:
Error: The "md-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "button" element.

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

Angular 4.4.0-RC.0
Angular material 2.0.0-beta.10
Chrome 60.0.3112.113

Is there anything else we should know?

Error cause seems to be in this file: https://github.com/angular/material2/blob/master/src/lib/datepicker/datepicker-toggle.html

md-icon-button directive is included in the button element, which is forbidden in the compatibility mode (as far as I understand).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions