Skip to content

Datepicker: Year selection mode doesn't work with years before 1986 #9534

Closed
@belavenuto

Description

@belavenuto

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Select year before 1986 correctly through "year selection mode", implemented in #8565

What is the current behavior?

The year 1985 is missing, so when you select any year before 1986, it selects a year later, for example, when you select 1981, datepicker selects 1982.

What are the steps to reproduce?

The issue can be observed on Material docs, https://material.angular.io/components/datepicker/overview

3y6t1ujavu

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

Angular: 5.1.3
Material: 5.1.0
OS: Windows 7
TypeScript: 2.6.2
Browsers:

  • Chrome Version 63.0.3239.132 (Official Build) (64-bit)
  • Firefox Version 57.0.4 (64-bit)

Is there anything else we should know?

On IE 11, the behavior is correct.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions