fix: HTML not rendered in Text Editor field (#37293)

* fix: HTML not rendered in Text Editor field

* refactor: remove unused variables
This commit is contained in:
Ejaaz Khan 2026-02-20 12:06:56 +05:30 committed by GitHub
parent 66877405e1
commit dc2d26a4aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -158,7 +158,6 @@ frappe.ui.form.ControlInput = class ControlInput extends frappe.ui.form.Control
}
set_disp_area(value) {
let is_val_html = frappe.utils.is_html(value);
if (
["Currency", "Int", "Float"].includes(this.df.fieldtype) &&
(this.value === 0 || value === 0)
@ -179,9 +178,7 @@ frappe.ui.form.ControlInput = class ControlInput extends frappe.ui.form.Control
let display_value = frappe.format(value, this.df, { no_icon: true, inline: true }, doc);
// This is used to display formatted output AND showing values in read only fields
if (this.disp_area) {
$(this.disp_area).html(
is_val_html ? frappe.utils.html2text(display_value) : display_value
);
$(this.disp_area).html(display_value);
// Apply alignment only for supported fields
if (
this.df.alignment &&