diff --git a/changelogs/unreleased/5748-textarea-fix.yml b/changelogs/unreleased/5748-textarea-fix.yml new file mode 100644 index 000000000..d5a0ceede --- /dev/null +++ b/changelogs/unreleased/5748-textarea-fix.yml @@ -0,0 +1,6 @@ +description: "Fix issue with updating textarea fields" +issue-nr: 5748 +change-type: patch +destination-branches: [master, iso7] +sections: + bugfix: "{{description}}" diff --git a/src/Test/Data/Field.ts b/src/Test/Data/Field.ts index 16ebb5752..fdfce7995 100644 --- a/src/Test/Data/Field.ts +++ b/src/Test/Data/Field.ts @@ -6,8 +6,20 @@ import { TextField, BooleanField, EnumField, + Textarea, } from "@/Core"; +export const textArea: Textarea = { + kind: "Textarea", + name: "textarea_field", + description: "description", + isOptional: true, + isDisabled: false, + defaultValue: "", + inputType: TextInputTypes.text, + type: "string", +}; + export const text: TextField = { kind: "Text", name: "text_field", diff --git a/src/UI/Components/ServiceInstanceForm/Components/TextFormInput.tsx b/src/UI/Components/ServiceInstanceForm/Components/TextFormInput.tsx index 0b4581c7d..ab2a10cf5 100644 --- a/src/UI/Components/ServiceInstanceForm/Components/TextFormInput.tsx +++ b/src/UI/Components/ServiceInstanceForm/Components/TextFormInput.tsx @@ -103,8 +103,8 @@ export const TextFormInput: React.FC = ({ > {isTextarea ? (