Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Datepicker : impossible to select a date in month view #8982

Closed
fbruffaert opened this issue Jul 8, 2016 · 1 comment
Closed

Datepicker : impossible to select a date in month view #8982

fbruffaert opened this issue Jul 8, 2016 · 1 comment
Assignees
Labels
has: Pull Request A PR has been created to address this issue type: bug

Comments

@fbruffaert
Copy link

fbruffaert commented Jul 8, 2016

Actual Behavior:

  • What is the issue?

I have created a datepicker with :

  • mdMinDate attribute set to "2000-01-01"
  • mdMaxDate attribute set to 2020-12-31".

If I scroll up and down in the default view, I can select any date within this range of dates => OK.

However, if I switch to month view, I can't scroll up. I am stuck at 2019 and am unable to select any date prior to 2019 => KO

If I remove mdMaxDate, there is no problem anymore with min date: I can select any date from "2000" to "2020" in month view.

  • What is the expected behavior?

In the month view, I should be able to scroll up to the year "2000".

CodePen (or steps to reproduce the issue): *
http://codepen.io/fbruffaert/pen/mEBPPp

Angular Versions: *

  • Angular Version:1.5.5
  • Angular Material Version: 1.5.5

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * 52.0.2743.60 beta-m (64-bit)
  • OS: * Windows 10
  • Stack Traces: none
@crisbeto
Copy link
Member

crisbeto commented Jul 8, 2016

The month view validation definitely needs some more work. Also referencing #8886

@crisbeto crisbeto self-assigned this Jul 8, 2016
@crisbeto crisbeto added the has: Pull Request A PR has been created to address this issue label Jul 9, 2016
crisbeto added a commit to crisbeto/material that referenced this issue Jul 9, 2016
* Fixes the datepicker not determining correctly when to disabled a month in the year view.
* Fixes the datepicker not rendering the proper minimum date, if a maximum date is present.
* Fixes race condition when triggering the first render of the virtual repeat.

Fixes angular#8982.
Fixes angular#8886.
crisbeto added a commit to crisbeto/material that referenced this issue Jul 9, 2016
* Fixes the datepicker not determining correctly when to disabled a month in the year view.
* Fixes the datepicker not rendering the proper minimum date, if a maximum date is present.
* Fixes race condition when triggering the first render of the virtual repeat.

Fixes angular#8982.
Fixes angular#8886.
crisbeto added a commit to crisbeto/material that referenced this issue Jul 10, 2016
* Fixes the datepicker not determining correctly when to disabled a month in the year view.
* Fixes the datepicker not rendering the proper minimum date, if a maximum date is present.
* Fixes race condition when triggering the first render of the virtual repeat.
* Fixes potential locale issues when running the mdDateUtil tests.

Fixes angular#8982.
Fixes angular#8886.
crisbeto added a commit to crisbeto/material that referenced this issue Jul 10, 2016
* Fixes the datepicker not determining correctly when to disabled a month in the year view.
* Fixes the datepicker not rendering the proper minimum date, if a maximum date is present.
* Fixes race condition when triggering the first render of the virtual repeat.
* Fixes potential locale issues when running the mdDateUtil tests.

Fixes angular#8982.
Fixes angular#8886.
crisbeto added a commit to crisbeto/material that referenced this issue Jul 14, 2016
* Fixes the datepicker not determining correctly when to disabled a month in the year view.
* Fixes the datepicker not rendering the proper minimum date, if a maximum date is present.
* Fixes race condition when triggering the first render of the virtual repeat.
* Fixes potential locale issues when running the mdDateUtil tests.

Fixes angular#8982.
Fixes angular#8886.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has: Pull Request A PR has been created to address this issue type: bug
Projects
None yet
Development

No branches or pull requests

2 participants