From f21b783cfefc9485a8f7748539076bb7d0def2b8 Mon Sep 17 00:00:00 2001 From: Danielo Rodriguez Date: Mon, 16 Oct 2023 10:29:30 +0200 Subject: [PATCH] fix: text-area initial value --- src/FormModal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FormModal.ts b/src/FormModal.ts index 76605a7e..035c3788 100644 --- a/src/FormModal.ts +++ b/src/FormModal.ts @@ -38,8 +38,8 @@ export class FormModal extends Modal { case "textarea": fieldBase.setClass('modal-form-textarea') return fieldBase.addTextArea((textEl) => { + if (typeof initialValue === 'string') { textEl.setValue(initialValue); } textEl.onChange(value => { - this.formResult[definition.name] = value; }); textEl.inputEl.rows = 6;