fix: button title shows svg element

This commit is contained in:
Saqib Ansari 2026-02-25 15:54:06 +05:30
parent f336219c06
commit 2b2fb7e0c1
2 changed files with 2 additions and 1 deletions

View file

@ -24,7 +24,7 @@ frappe.ui.form.ControlButton = class ControlButton extends frappe.ui.form.Contro
this.$input = $(
`<button
class="btn ${frappe.utils.escape_html(btn_size)} ${frappe.utils.escape_html(btn_type)}"
title="${frappe.utils.escape_html(this.df.label)}"
title="${this.df.title || frappe.utils.escape_html(this.df.label)}"
>`
)
.prependTo(me.input_area)

View file

@ -62,6 +62,7 @@ frappe.views.CommunicationComposer = class {
{
fieldtype: "Button",
label: frappe.utils.icon("down", "xs"),
title: __("More Options"),
fieldname: "option_toggle_button",
click: () => {
this.toggle_more_options();