Skip to content

Commit

Permalink
FIO-7406 Fixed plain Textarea interpolating data in readonly mode
Browse files Browse the repository at this point in the history
  • Loading branch information
antonSoftensity authored and lane-formio committed Dec 5, 2023
1 parent 9b4db98 commit bc963d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/textarea/TextArea.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ export default class TextAreaComponent extends TextFieldComponent {
if (this.options.readOnly || this.disabled) {
if (this.refs.input && this.refs.input[index]) {
if (this.component.inputFormat === 'plain') {
this.refs.input[index].innerText = this.interpolate(value, {}, { noeval: true });
this.refs.input[index].innerText = this.isPlain ? value : this.interpolate(value, {}, { noeval: true });
}
else {
this.setContent(this.refs.input[index], this.interpolate(value, {}, { noeval: true }), this.shouldSanitizeValue);
this.setContent(this.refs.input[index], this.isPlain ? value : this.interpolate(value, {}, { noeval: true }), this.shouldSanitizeValue);
}
}
}
Expand Down

0 comments on commit bc963d6

Please sign in to comment.