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 committed Oct 17, 2023
1 parent 4c407be commit a65193d
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 @@ -342,10 +342,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 a65193d

Please sign in to comment.