angular / angular/components

DatePicker breaks upon using arrow for year at year 2008

Open
#8,295 11 comments 0 reactions 0 assignees View on GitHub
area: material/datepicker P2
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
To go to year 2008

#### What is the current behavior?
DatePicker breaks and skips 2008 and goes to 2007

#### What are the steps to reproduce?
IN IMPORT
Material Datepicker,
MAT_DATE_LOCALE,

IN PROVIDER
{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},

#### What is the use-case or motivation for changing an existing behavior?
To be able to select years before 2009 without bug. I'm using it in a DOB field

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.4.6
angular/material: 2.0.0-beta.12
Linux (+ Windows - could not reproduce for windows - don't know how to strike-through)
TS 2.5.3
FF + Chrome

#### Is there anything else we should know?
Before 2008
http://tinypic.com/r/opwx7o/9

After 2008
http://tinypic.com/r/2z6tsh1/9

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Material Datepicker issue with MAT_DATE_LOCALE set to en-GB and year navigation around 2008 in the listed browser environments. Trace the DatePicker year-navigation entry point and verify that selecting 2008 no longer skips to 2007.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.