Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker: make property "opened" an input #8094

Closed
ocombe opened this issue Oct 28, 2017 · 1 comment · Fixed by #8098
Closed

Datepicker: make property "opened" an input #8094

ocombe opened this issue Oct 28, 2017 · 1 comment · Fixed by #8098
Assignees

Comments

@ocombe
Copy link
Contributor

ocombe commented Oct 28, 2017

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

@devversion devversion self-assigned this Oct 28, 2017
devversion added a commit to devversion/material2 that referenced this issue Oct 28, 2017
* Adds support for the `opened` input binding.

Closes angular#8094
devversion added a commit to devversion/material2 that referenced this issue Nov 11, 2017
* Adds support for the `opened` input binding.

Closes angular#8094
devversion added a commit to devversion/material2 that referenced this issue Nov 17, 2017
* Adds support for the `opened` input binding.

Closes angular#8094
devversion added a commit to devversion/material2 that referenced this issue Nov 17, 2017
* Adds support for the `opened` input binding.

Closes angular#8094
tinayuangao pushed a commit that referenced this issue Nov 29, 2017
* Adds support for the `opened` input binding.

Closes #8094
tinayuangao pushed a commit to tinayuangao/material2 that referenced this issue Nov 29, 2017
* Adds support for the `opened` input binding.

Closes angular#8094
@angular angular deleted a comment from torabian Dec 1, 2018
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants