Skip to content

[(ngModel)] + placeholder + Parent component OnPush = Bug #5654

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

Closed
GustavoCostaW opened this issue Jul 10, 2017 · 4 comments
Closed

[(ngModel)] + placeholder + Parent component OnPush = Bug #5654

GustavoCostaW opened this issue Jul 10, 2017 · 4 comments

Comments

@GustavoCostaW
Copy link

Bug, feature request, or proposal:

Bug

What is the current behavior?

When I use a simple input like this

<md-input-container>
  <input mdInput type="text" [(ngModel)]="assessment.title" name="title"
  placeholder="hello!" />
</md-input-container>

And the parent component is OnPush, the placeholder has a strange behavior:

What are the steps to reproduce?

It's simple: http://plnkr.co/edit/g5J40Puh5rmd3saPxip5?p=preview

in app.component.ts uncomment the line 9 changeDetection: ChangeDetectionStrategy.OnPush

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

Angular material beta 8

@willshowell
Copy link
Contributor

Dupe of #3005

@GustavoCostaW
Copy link
Author

Any update? @willshowell @ThomasBurleson

@josephperrott
Copy link
Member

It looks like this issue is no longer occuring as seen in this reproduction.

@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 7, 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

No branches or pull requests

3 participants