-
Bug
-
Resolution: Unresolved
-
Low
-
Severity 3 - Minor
-
M
Issue Summary
When defining a CustomFieldEdit component with a TextArea component, for Forge Custom Fields editor, the "enter" action in the CustomFieldEdit component will prevent the breaking-line logic of the TextArea.
When the user is adding text to the TextArea and hits enter, the CustomFieldEdit will save call the submit function, instead of breaking the text.
Example:
return (
<CustomFieldEdit onSubmit={onSubmit}>
<TextArea
value={value}
onChange={handleOnChange}
/>
</CustomFieldEdit>
);
Steps to Reproduce
- Create a Forge Custom Field and define an Edit Screen
- In the Edit Screen implements CustomFieldEdit and a nested TextArea
- Edit the custom field value and hit "enter".
Expected Results
Hitting enter causes the TextArea to break the line
Actual Results
Hitting enter causes the Custom Field value to be submitted.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
Form Name |
---|