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

Nested repeatable groups get cleared on umount even with keep-model-data #286

Closed
twitwi opened this issue Oct 10, 2020 · 1 comment
Closed
Labels
bug report A submitted bug report, not yet validated.

Comments

@twitwi
Copy link

twitwi commented Oct 10, 2020

Describe the bug
When nesting repeatable groups, keep-model-data does not seem to be sufficient to preserve the data object on form unmounting.

Reproduction
Both with schema and without, filling the form and clicking the button (to unmount the form) cause the data object to be cleared.
Without schema: https://codepen.io/twitwitwi/pen/MWewKOb
With schema: https://codepen.io/twitwitwi/pen/KKMwEoL

Expected behavior
Using keep-model-data should preserve the data object (no change to it on unmounting).

Sorry if it is again some ignorance or misunderstanding on my side as in #285

@twitwi twitwi added the bug report A submitted bug report, not yet validated. label Oct 10, 2020
@twitwi
Copy link
Author

twitwi commented Oct 12, 2020

(discussed in #285 )

@twitwi twitwi closed this as completed Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report A submitted bug report, not yet validated.
Projects
None yet
Development

No branches or pull requests

1 participant