Description
Describe the bug
When using the ObjectBrowserWidget, external errors (e.g. required field) do not display visual alerts in the form field. This prevents the manager from clearly identifying the issues.
Example in Teaser:
Current behavior:
Simulate
To simulate the issue and verify the fix:
Save Teaser without providing Target ( href).
Additional context
The problem is related to the validateManualLink and onSubmitManualLink methods, where internal errors are not being merged with external errors.
volto/packages/volto/src/components/manage/Widgets/ObjectBrowserWidget.jsx
Lines 238 to 242 in 91b2258
A possible solution is to combine this.state.errors with this.props.error in the render method before passing them to the FormFieldWrapper.