diff --git a/api/js/etemplate/et2_widget_url.js b/api/js/etemplate/et2_widget_url.js index 51e4ce7b96..bf5f56b7ce 100644 --- a/api/js/etemplate/et2_widget_url.js +++ b/api/js/etemplate/et2_widget_url.js @@ -303,8 +303,8 @@ export class et2_url_ro extends et2_valueWidget { * @param _value */ set_label(_value) { - this.options.label = _value; - if (this.span) { + if (this.span && this.options.label !== _value) { + this.options.label = _value; this.span.text(_value); } } diff --git a/api/js/etemplate/et2_widget_url.ts b/api/js/etemplate/et2_widget_url.ts index 65739225e2..224c18192c 100644 --- a/api/js/etemplate/et2_widget_url.ts +++ b/api/js/etemplate/et2_widget_url.ts @@ -362,9 +362,9 @@ export class et2_url_ro extends et2_valueWidget */ set_label(_value) { - this.options.label = _value; - if(this.span) + if(this.span && this.options.label !== _value) { + this.options.label = _value; this.span.text(_value); } }