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 reactive forms, debounce inputs #48

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

actra-gschuster
Copy link

Fixes reative forms and adds custom debounce time for form inputs by adding @Input('debounce')
Works as expected with angular 5.1.0-beta.0 and immutable state.

actra-gschuster and others added 10 commits November 11, 2017 14:00
...to prevent event emission when there in fact is no change.
"null" and "undefined" (possibly valid in your state) in fact are empty but unequal to "empty string" (in fact the only valid "empty value" on forms) and thus would trigger "form changed" event.
Only fetch fields as descendants, not FormGroups or FormArrays as otherwise patchValue() runs and endless loop because of strict comparison of old and new value always returning false because FromGroup/FormArray objects fetched from form and store are never the same.
@rplotkin
Copy link

rplotkin commented Jan 8, 2018

This branch will not build for me. connect-array is issuing TS errors.

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

Successfully merging this pull request may close these issues.

2 participants