material icon indicating copy to clipboard operation
material copied to clipboard

RC6 - Datepicker Demo - Typed in dates are marked as invalid

Open runethh opened this issue 10 years ago • 7 comments

How to reproduce:

  1. Select Datepicker in the menu
  2. Change one of the dates using the keybord, observe that the date is flagged as "invalid" by the red line underneath

runethh avatar Dec 03 '15 12:12 runethh

@runethh I can't reproduce this issue. It has probably been fixed. Closing this issue now- we can re-open it if someone can provide a reproduction in CodePen or similar.

jelbourn avatar Jan 05 '16 22:01 jelbourn

The issue still exists in 1.0.2

How to reproduce:

  1. Load datepicker: image
  2. Use the mouse cursor to select a valid date in the "With ngMessage" datepicker image
  3. Observe that the date is accepted, indicated by the absence of a warning. Also the line below the date is grey
  4. Now select the date using the mouse cursor. Use the keybord to delete the last digit, and type the exact same digit again. Hit enter. Now observe that a warning appears and the line below turns red.

image

runethh avatar Jan 21 '16 15:01 runethh

@runethh Which browser are you using? I still cannot reproduce this.

jelbourn avatar Jan 21 '16 16:01 jelbourn

I can reproduce it on Angular Material version 1.0.3 on:

Desktop: Chrome - Version 47.0.2526.111 m on Windows 7.

Mobile: Safari version 8, on Iphone 5S Chrome version 47 on Samsung Galaxy

I have added a little handheld video for your viewing pleasure :)

Datepicker bug.zip

runethh avatar Jan 22 '16 10:01 runethh

Same problem (chrome 48.0.2564.82 ubuntu) when I use keybord to type in date red error label occurred, when I change days and month the date is correct.

zrzut ekranu z 2016-01-22 12-05-45

traqutor avatar Jan 22 '16 11:01 traqutor

This issue is still present in 1.0.5.

Traqutors comment hints that the typed in dates are registered with the wrong date format (DD/MM/YYYY vs MM/DD/YYYY)

runethh avatar Feb 29 '16 09:02 runethh

Then this sounds like a dupe of https://github.com/angular/material/issues/4671

jelbourn avatar Mar 02 '16 00:03 jelbourn