ngneat / forms-manager

🦄 The Foundation for Proper Form Management in Angular
https://www.netbasal.com
MIT License
519 stars 29 forks source link

fix: 🐛 clear all initial values when clearing complete store #30

Closed adrianriepl closed 3 years ago

adrianriepl commented 3 years ago

Clears complete Map of initial values when the store is getting cleared.

Closes: #29

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

When calling the methods formsManager.clear() or formsManager.destroy() without parameters the existing initial values are not being cleared.

Issue Number: #29

What is the new behavior?

All initial values are now being cleared when clearing the complete store.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information