fix(list_view): better formatting for data field elements

This commit is contained in:
ayushschaudhari1904@gmail.com 2026-01-31 01:18:35 +05:30
parent af12ba99cf
commit 71ea6fa703

View file

@ -905,6 +905,8 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
aria-valuemin="0" aria-valuemax="100" style="width: ${Math.round(value)}%;">
</div>
</div>`;
} else if (df.fieldtype === "Data") {
return frappe.format(frappe.utils.escape_html(value), df, null, doc);
} else {
return frappe.format(value, df, null, doc);
}