Skip to content

DatePicker inside NgForm launches from any mdInput (bug) #4777

@LilSebastian5000

Description

@LilSebastian5000

Bug, feature request, or proposal:

When nesting both an mdInput and an mdDatePicker inside an ngForm, hitting the 'Enter' key in the mdInput will open the datepicker in the mdDatePicker.

What is the expected behavior?

Form controls should behave separately from each other. Hitting enter in one field should not affect another.

What are the steps to reproduce?

I've edited the example plunker below. Type the 'Enter' key when inside the first input field:

https://plnkr.co/edit/VMU3GspvB3uvrbN6Mpu7?p=preview

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

Angular 4.0.2, Material 2.0.0-beta.5, Win 7 & 10, Typescript 2.2.2, Chrome

Metadata

Metadata

Assignees

No one assigned

    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