Skip to content

Datepicker: make property "opened" an input #8094

Closed

Description

@ocombe

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

I would like to have the datepicker opened at load time, for that I expected to use [opened]=true, but it turns out that it's a simple property, not an input, which means that I cannot set the date picker to open at load time. If i use open() in ngAfterViewInit I get an ExpressionChangedAfterItHasBeenCheckedError, which makes sense since it was changed from false to true.

What is the current behavior?

opened is a property, not an input

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

We should be able to show the datepicker opened with an input

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

Material/CDK 2.0.0-beta.12

Activity

  1. self-assigned this
    on Oct 28, 2017
  2. added a commit that references this issue on Oct 28, 2017
    9a1b0c5
  3. added 3 commits that reference this issue on Nov 11, 2017
    35573f1
    6ce56b1
    d623f01
  4. added 2 commits that reference this issue on Nov 29, 2017
    2b9bc57
    f4015b4
  5. deleted a comment from torabian on Dec 1, 2018
  6. angular-automatic-lock-bot commented on Sep 10, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions