diff --git a/api/js/etemplate/Et2Email/Et2Email.ts b/api/js/etemplate/Et2Email/Et2Email.ts index a58c643dbf..91c975c9f4 100644 --- a/api/js/etemplate/Et2Email/Et2Email.ts +++ b/api/js/etemplate/Et2Email/Et2Email.ts @@ -297,7 +297,6 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI pull: pull, put: !(this.readonly || this.disabled) }, - // filter: "[isEditing],.et2-no-drag", onEnd: this.handleSortEnd }); } @@ -935,6 +934,7 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI { const readonly = (this.readonly); const isEditable = !readonly; + const isValid = this.validateAddress(value); return html` { + // This stops drag and drop from interfereing with mouse edits + this._editNode.input.setAttribute("contenteditable", "true"); + this._editNode.focus(); }) } @@ -211,7 +215,7 @@ export class Et2Tag extends Et2Widget(SlTag) stopEdit() { this.isEditing = false; - this.removeAttribute("isEditing"); + this.removeAttribute("contenteditable"); let event = new Event("change", { bubbles: true });