Skip to content

Datepicker has clear value button in IE but not in Chrome/Firefox #8076

@mserbruyns

Description

@mserbruyns

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Either there should be a clear button working in all browsers or in none.

What is the current behavior?

In IE: When you focus the datepicker after selecting a date, there is a clear button visible which clears the value
ie

That button doesn't appear in Chrome/Firefox:
chrome

What are the steps to reproduce?

<mat-form-field fxFlex="50%">
    <input matInput  id="dateCreationFrom" name="dateCreationFrom" placeholder="Datum Creatie" (click)="dateCreationFromPicker.open()"
           [matDatepicker]="dateCreationFromPicker" [(ngModel)]="selectedDateCreationFrom" formControlName="dateCreationFromControl">
    <mat-datepicker-toggle matSuffix [for]="dateCreationFromPicker"></mat-datepicker-toggle>
    <mat-datepicker #dateCreationFromPicker></mat-datepicker>
    <mat-hint align="start">van</mat-hint>
</mat-form-field>

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

Angular 4.4.6
Angular Material 2.0.0-beta.12
tested in Chrome, Firefox and IE11

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions