Skip to content

Commit

Permalink
fix: text-area initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed Oct 16, 2023
1 parent 779d26e commit f21b783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f21b783

Please sign in to comment.