Et2SelectEmail: Fix fullEmail did not show full email

This commit is contained in:
nathan 2022-12-12 14:07:08 -07:00
parent 9da38628a0
commit 5acc8c55c8

View File

@ -156,7 +156,12 @@ export class Et2SelectEmail extends Et2Select
protected _createTagNode(item) protected _createTagNode(item)
{ {
let tag = super._createTagNode(item); let tag = super._createTagNode(item);
tag.fullEmail = this.fullEmail; tag.fullEmail = this.fullEmail;
// Re-set after setting fullEmail as that can change what we show
tag.textContent = item.getTextLabel().trim();
if(!this.readonly && this.allowFreeEntries && this.allowDragAndDrop) if(!this.readonly && this.allowFreeEntries && this.allowDragAndDrop)
{ {
let dragTranslate = {x: 0, y: 0}; let dragTranslate = {x: 0, y: 0};