Skip to content

bug(datepicker): "matStartDate" and "matEndDate" input directive "dateInput" and "dateChange" outputs are not recognized by Angular language service #20932

Closed
@hakimio

Description

@hakimio

Reproduction

Steps to reproduce:

  1. If you try to use dateInput or dateChange outputs with matStartDate or matEndDate directives in IDE which uses Angular language service for Angular template validation, you'll see that those outputs are marked as invalid:

date input error

Expected Behavior

IDE should not complain about dateInput and dateChange outputs since they are valid.

Actual Behavior

IDE displays error indicating that those outputs are invalid even they are valid.

Additional information

This does not happen with matDatepicker directive. When used with matDatepicker, those outputs are recognized by the Angular language service.

Environment

  • Angular: 10
  • CDK/Material: 10.2.6

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions