-
Notifications
You must be signed in to change notification settings - Fork 111
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
Bug: Adding document with a slice doesn't work #245
Comments
This problem occurs when slices are not marked as 'Allow multiple slices'. Isolated the problem to this code fragment in
|
Same as #244 ? |
Was looking at this the other night. Transform is a recursive method that iterates over all the fields and resolves their value. Both groups and slices are handled in a very similar manner and both contain an option which allows or restricts repeated / multiples. However, both handle the side effects of toggling this option quite differently. The following steps can be followed to reproduce issue described in part here:
When following the same steps for groups we reach a different outcome; when the repeated option is toggled with data already entered only the first value (of the array) is rendered. When the repeated option is toggled back we see the previously entered data, no loss no hard fail etc. The following PR #361 361 aims to handle slices and groups in a similar manner. |
I tried to add a slice to the document and when I am saving the slice and refresh the document the slice is gone and not saved.
The text was updated successfully, but these errors were encountered: