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

Support OnPush change detection #55

Open
Roitr opened this issue Jul 14, 2020 · 1 comment
Open

Support OnPush change detection #55

Roitr opened this issue Jul 14, 2020 · 1 comment

Comments

@Roitr
Copy link

Roitr commented Jul 14, 2020

Example:
https://stackblitz.com/edit/ngx-mat-intl-tel-input-demo-d56xoc

In the attached stackblitz, the form is initialized in a service, and the component uses OnPush.

There are 2 inputs in that form. The phone input is not populated, and the other one is populated.

I couldn't exactly reproduce the issue I have in my app, where only the country code is not populated when the page loads, and when clicking the second input, it causes the country code part to be selected.

@Roitr
Copy link
Author

Roitr commented Jul 15, 2020

PR: #56

@Roitr Roitr changed the title The input is not populated when the component loads if using OnPush Support OnPush change detection Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant