Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mserbruyns opened this issue Oct 27, 2017 · 2 comments · Fixed by #8095
Closed

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

mserbruyns opened this issue Oct 27, 2017 · 2 comments · Fixed by #8095
Assignees
Labels
P4 A relatively minor issue that is not relevant to core functions

Comments

@mserbruyns
Copy link

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

@jelbourn jelbourn added the P4 A relatively minor issue that is not relevant to core functions label Oct 27, 2017
@crisbeto crisbeto self-assigned this Oct 28, 2017
crisbeto added a commit to crisbeto/material2 that referenced this issue Oct 28, 2017
Removes IE's native clear icon from inputs, because it makes them inconsistent between browsers.

Fixes angular#8076.
@alexfung888
Copy link

@crisbeto shouldn't you add the feature to all browsers, instead of removing it from IE?

Actually I need to write a custom component to add a clear button to the datepicker.

andrewseguin pushed a commit that referenced this issue Nov 2, 2017
Removes IE's native clear icon from inputs, because it makes them inconsistent between browsers.

Fixes #8076.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants