From 2d0bb9fda77994e27738e9d59c1361b6d959c3e9 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 8 Jun 2021 10:59:46 -0600 Subject: [PATCH] Add missing backport from 488f01aea9e5d9f8ed7a1b680c8de5c139e4cc2a --- api/js/etemplate/et2_widget_url.js | 4 ++-- api/js/etemplate/et2_widget_url.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/js/etemplate/et2_widget_url.js b/api/js/etemplate/et2_widget_url.js index 989cb1c809..30f1b6310b 100644 --- a/api/js/etemplate/et2_widget_url.js +++ b/api/js/etemplate/et2_widget_url.js @@ -324,8 +324,8 @@ var et2_url_ro = /** @class */ (function (_super_1) { * @param _value */ et2_url_ro.prototype.set_label = function (_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 21d2df8cc3..493c3bb370 100644 --- a/api/js/etemplate/et2_widget_url.ts +++ b/api/js/etemplate/et2_widget_url.ts @@ -360,9 +360,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); } }