Uploaded image for project: 'Atlassian Ecosystem'
  1. Atlassian Ecosystem
  2. ECO-695

CustomFieldEdit doesn't allow the TextArea text to break line

    • 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

      1. Create a Forge Custom Field and define an Edit Screen
      2. In the Edit Screen implements CustomFieldEdit and a nested TextArea
      3. 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

            [ECO-695] CustomFieldEdit doesn't allow the TextArea text to break line

            There are no comments yet on this issue.

              pracki Pawel Racki
              6b8f2fe36dd5 Gabriel Dias
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated: