ngneat / forms-manager

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

Mat Date Picker value doesn't persist to local storage #7

Closed dspeirs7 closed 4 years ago

dspeirs7 commented 4 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior

Using a mat date picker the value is an empty object instead of the date selected.

Expected behavior

The correct date to be stored instead of an empty object.

Minimal reproduction of the problem with instructions

Add a mat date picker and persist to local storage.

What is the motivation / use case for changing the behavior?

To have the date persist on refresh.

Environment


Angular version: 9.1.9


Browser:
- [X] Chrome (desktop) version 81.0.4044.138
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: 12.16.3
- Platform:  Windows            
NetanelBasal commented 4 years ago

You're welcome to submit a PR.