Add missing backport from 488f01aea9

This commit is contained in:
nathangray 2021-06-08 10:59:46 -06:00 committed by Hadi Nategh
parent 7297789e79
commit 2d0bb9fda7
2 changed files with 4 additions and 4 deletions

View File

@ -324,8 +324,8 @@ var et2_url_ro = /** @class */ (function (_super_1) {
* @param _value
*/
et2_url_ro.prototype.set_label = function (_value) {
if (this.span && this.options.label !== _value) {
this.options.label = _value;
if (this.span) {
this.span.text(_value);
}
};

View File

@ -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);
}
}