Skip to content

DatePicker year minDate and maxDate not working correctly #4343

@ColadaFF

Description

@ColadaFF

Problem description

The year component of the date picker doesn't work properly when minDate and maxDate are setted in the component declaration, the div inside the component that has no style, is using the browser default styles, so the height is not the correct to show all the years, as a result of this, the years that are show in the component are less than the selected in the range, this only happens in the min years not in the max years.

Steps to reproduce

  • Go to: DatePicker-docs
  • Select the "Range example"
  • Set a min date of less than 2006
  • Open the DatePicker component of the example and go to year selector
  • You will see something like: screen shot 2016-05-25 at 1 04 06 pm

Versions

  • Material-UI: 15
  • React: 15
  • Browser: Chrome 50.0.2661.102

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions