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

fix(angular forms): make sure angular form control onChange is fired when needed #16126

Merged
merged 7 commits into from
Oct 30, 2018
Merged

fix(angular forms): make sure angular form control onChange is fired when needed #16126

merged 7 commits into from
Oct 30, 2018

Conversation

MarkChrisLevy
Copy link
Contributor

Short description of what this resolves:

Fixes #16125

Changes proposed in this pull request:

Ionic Version: 1.x / 2.x / 3.x / 4.x

Fixes: #

@ionitron-bot ionitron-bot bot added the package: angular @ionic/angular package label Oct 29, 2018
* Whether onChange should be mutted (not be fired). Will be true only when writeValue was called, which
* means that value changed inside angular form (e.g. calling setValue on a control).
*/
private muteOnChange: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would give it a value by default

Suggested change
private muteOnChange: boolean;
private muteOnChange = false;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry i meant this change for all the accessors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups, my fault. Done!

@manucorporat manucorporat merged commit d5f2e6f into ionic-team:master Oct 30, 2018
@manucorporat
Copy link
Contributor

Thanks a lot for the PR!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: angular @ionic/angular package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v4] calling setValue on angular control form always marks as control as dirty and touched
3 participants