From 5acc8c55c81f16b572d45c85506b09ed128f1a6c Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 12 Dec 2022 14:07:08 -0700 Subject: [PATCH] Et2SelectEmail: Fix fullEmail did not show full email --- api/js/etemplate/Et2Select/Et2SelectEmail.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/Et2SelectEmail.ts b/api/js/etemplate/Et2Select/Et2SelectEmail.ts index 5f9a95346f..9a63f4e60a 100644 --- a/api/js/etemplate/Et2Select/Et2SelectEmail.ts +++ b/api/js/etemplate/Et2Select/Et2SelectEmail.ts @@ -156,10 +156,15 @@ export class Et2SelectEmail extends Et2Select protected _createTagNode(item) { let tag = super._createTagNode(item); + 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) { - let dragTranslate = {x:0,y:0}; + let dragTranslate = {x: 0, y: 0}; tag.class = item.classList.value + " et2-select-draggable"; let draggable = interact(tag).draggable({ startAxis: 'xy',