-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
[5.x] Handle required
fields when adding entries to nav
#10468
[5.x] Handle required
fields when adding entries to nav
#10468
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you don't have any required fields, you can no longer add entries at all. Clicking the dropdown item does nothing and outputs a JS error.
It works when you do have a required field.
Returning `null` seems to cause an issue with the `<relationship-input>` component, where as returning nothing or undefined seems to work fine.
Returning `null` seems to cause an issue with the `<relationship-input>` component, where as returning nothing or undefined seems to work fine.
… of github.com:statamic/cms into handle-required-validation-when-adding-entries-to-navs
Good catch, should be sorted now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fixed, thanks.
But now I'm noticing that when you don't have any required fields, and you pick a single entry, the editor pops up.
So much stuff being tackled and added all the time. ❤️ |
This pull request makes some improvements around the handling of required fields in Navigation blueprints.
Currently, when you select entries to add to a navigation, you'll be able to get away without filling any required fields.
With this PR, you'll only be able to select a single entry at a time. After selecting, you'll be taken to the "Edit Page" stack where you'll be able to fill the required field.
Fixes #4582.