Skip to content

DatePicker duplicates md-datepicker container every time you open the calendar #5151

Closed
@icampo-cic

Description

@icampo-cic

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When clicking the calendar icon to open the datepicker it should open the same md-datepicker container every time.

What is the current behavior?

Every time you click the little calendar icon to open the datePicker it creates another md-datepicker container wich results in multiple md-datepicker containers and the last one with the actual calendar.

What are the steps to reproduce?

  1. Open the datepicker
  2. Close the datepicker
  3. Re-open the date picker
  4. See the duplicated MdDatePickerContent with Augury Chrome plugin.

http://plnkr.co/edit/gbPPmwF9gMKiYXK9Oypm?p=preview

What is the use-case or motivation for changing an existing behavior?

Improve performance

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

Angular: v4.0.0
Material: v2.0.0@beta.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/datepickerperfThis issue is related to performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions