angular / angular/components

DatePicker breaks upon using arrow for year at year 2008

未关闭
#8,295 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area: material/datepicker P2
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### 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

贡献指南

打开贡献指南

调研方向

首先,在列出的浏览器环境中,使用设置为 en-GB 的 MAT_DATE_LOCALE,并在 2008 年前后进行年份导航,复现 Material Datepicker 问题。跟踪 DatePicker 年份导航的入口点,并验证选择 2008 后不再跳转到 2007。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。