Validation Error Border Missing for Content Picker
Describe the bug
In Orchard Core 2.1.5, the validation error styling for required fields is inconsistent across different field types. While text and date fields correctly display a red border when validation fails, the Content Picker field does not show the error border when it is required but left empty.
Orchard Core version
2.1.5
To Reproduce
- Add a Content Picker field to a Content Type.
- Mark the field as Required in its settings.
- Create a new Content Item of this type and leave the Content Picker field empty.
- Try to save the form.
Expected behavior
- The Content Picker field should display a red error border similar to text and date fields when validation fails.
Logs and screenshots
Thank you for submitting your first issue, awesome! 🚀 We're thrilled to receive your input. If you haven't completed the template yet, please take a moment to do so. This ensures that we fully understand your feature request or bug report. On what happens next, see the docs.
@SndpAST are you going to submit a PR for it?
This is indeed an issue. I guess it's because while the other two are simple text inputs, the Content Picker is not, and thus needs specific support for this.
I will wait until tomorrow for @SndpAST if he didn't reply I will might take this
We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).
This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.