#98648Inspector-TextareaEditor fails to validate
Description
I have a custom form finisher with a textarea field as required option in the form editor. If I save the form without a value, the validation does not behave like when using a simple input.
The onChange handler does not trigger the error message like shown under the input field.
fields.PNG
When saving the form, the finisher does not get a red border. Instead a generic error is shown.
save.PNG
I think, the error is somewhere in the backend JS.
My expectation is, that a textarea field behaves the same way like an input with Inspector-TextEditor template.
Here is my simplified setup.
TYPO3:
CMS:
Form:
prototypes:
standard:
formElementsDefinition:
Form:
formEditor:
editors:
900:
selectOptions:
190:
value: MyFinisher
label: MyFinisher
propertyCollections:
finishers:
190:
identifier: MyFinisher
editors:
100:
identifier: header
templateName: Inspector-CollectionElementHeaderEditor
label: MyFinisher
110:
identifier: myInput
templateName: Inspector-TextEditor
label: MyInputLabel
propertyPath: options.myInput
propertyValidators:
10: NotEmpty
120:
identifier: myTextArea
templateName: Inspector-TextareaEditor
label: MyTextareaLabel
propertyPath: options.myTextArea
propertyValidators:
10: NotEmpty
finishersDefinition:
MyFinisher:
formEditor:
iconIdentifier: form-finisher
label: MyFinisher
predefinedDefaults:
options:
myInput: ''
myTextArea: ''
Tested with TYPO3 11.5.17 and Browsers Firefox and Edge.