fix select color method

This commit is contained in:
OVSharova
2023-09-04 14:30:45 +03:00
parent e8ecc6cdbd
commit dd913c9c8a

View File

@ -666,8 +666,7 @@ define([
if(color)
this._effectColor = Common.Utils.ThemeColor.getHexColor(color.get_r(), color.get_g(), color.get_b()).toUpperCase();
if (!!this.colorPickerParameters) {
this.colorPickerParameters.clearSelection();
this.colorPickerParameters.$el.find('a.color-' + this._effectColor).first().addClass('selected');
this.colorPickerParameters.selectByRGB(this._effectColor, true);
}
},