Skip to content

Date-picker is not setting the value when entered via keyboard #5282

@MaickelHubner

Description

@MaickelHubner

Bug, feature request, or proposal:

When I type (via keyboard) a value in the format DD/MM/YYYY, the component is not setting the entered date

What is the expected behavior?

When entering a date via keyboard, it is set in the component

What is the current behavior?

When entering via keyboard the date is null

What are the steps to reproduce?

1
2
3

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: https://goo.gl/DlHd6U

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

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

Angular 4.2.3 Material 2.0.0-beta.7, MacOSX 10.12.5, Typescript 2.2.2 and Safari 10.1.1

Is there anything else we should know?

My code (no secrets) - Local format and time: Brazil UTC-3:

<md-input-container *ngIf="atualiza_data_fim">
<input mdInput placeholder="Até" [mdDatepicker]="dataAte" [(ngModel)]="data_fim">
<button mdSuffix [mdDatepickerToggle]="dataAte">

<md-datepicker #dataAte [startAt]="data_fim" [touchUi]="true">

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