You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
For a collection that includes a list widget, when I add a new item to the list, but don't provide values in any of the fields, I am able to save changes without complaint from the UI. The resultant object within that list within that collection item is missing any keys for which I omitted values. This is true for list fields with required: true as well as for fields where required key is unspecified (assumed required by default).
For example, I can save this (see screenshot) even when list items One / Two / Three are required (implicitly or explicitly). Also note missing default value for Three.
I have not tested regex validation for list fields, but also wonder about that.
- If the current behavior is a bug, please provide the steps to reproduce.
Push below config.yml to GitHub, open the CMS UI after everything builds on Netlify, add new collection item, add a value to one of the required collection fields (e.g., title), add new list item, omit all fields for new list item, click save.
- What is the expected behavior?
I was expecting to see the same behavior as when omitting values for required fields not contained within lists, i.e., I wasn't expecting the UI to permit saving. Also was expecting to see default values pre-filled by the UI.
- Do you want to request a feature or report a bug?
Bug
- What is the current behavior?
For a collection that includes a list widget, when I add a new item to the list, but don't provide values in any of the fields, I am able to save changes without complaint from the UI. The resultant object within that list within that collection item is missing any keys for which I omitted values. This is true for list fields with
required: true
as well as for fields whererequired
key is unspecified (assumed required by default).For example, I can save this (see screenshot) even when list items One / Two / Three are required (implicitly or explicitly). Also note missing default value for Three.
I have not tested regex validation for list fields, but also wonder about that.
- If the current behavior is a bug, please provide the steps to reproduce.
Push below
config.yml
to GitHub, open the CMS UI after everything builds on Netlify, add new collection item, add a value to one of the required collection fields (e.g., title), add new list item, omit all fields for new list item, click save.- What is the expected behavior?
I was expecting to see the same behavior as when omitting values for required fields not contained within lists, i.e., I wasn't expecting the UI to permit saving. Also was expecting to see default values pre-filled by the UI.
- Please mention your versions where applicable.
Netlify CMS version: 1.7.0
Browser version: Chrome 66.0.3359.139
Node.JS version:
Operating System:
- Please link or paste your
config.yml
below if applicable.The text was updated successfully, but these errors were encountered: