From a65193d7f4b99b3ed917a0c31c6e9e0b7eead8cd Mon Sep 17 00:00:00 2001 From: Anton K Date: Tue, 17 Oct 2023 17:26:47 +0300 Subject: [PATCH] FIO-7406 Fixed plain Textarea interpolating data in readonly mode --- src/components/textarea/TextArea.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/textarea/TextArea.js b/src/components/textarea/TextArea.js index bfe2ad4b12..3639aedafe 100644 --- a/src/components/textarea/TextArea.js +++ b/src/components/textarea/TextArea.js @@ -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); } } }