mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
Fix email tags could not be edited inside Et2Email
They could, but the change was ignored for the first tag
This commit is contained in:
parent
197e321905
commit
0dfeae9b16
@ -297,6 +297,7 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
|||||||
pull: pull,
|
pull: pull,
|
||||||
put: !(this.readonly || this.disabled)
|
put: !(this.readonly || this.disabled)
|
||||||
},
|
},
|
||||||
|
// filter: "[isEditing],.et2-no-drag",
|
||||||
onEnd: this.handleSortEnd
|
onEnd: this.handleSortEnd
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -905,7 +906,7 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
|||||||
handleTagChange(event)
|
handleTagChange(event)
|
||||||
{
|
{
|
||||||
// Need to update our value, or it will just redo the tag with the old value
|
// Need to update our value, or it will just redo the tag with the old value
|
||||||
if(event.originalValue && this.value.indexOf(event.originalValue))
|
if(event.originalValue && this.value.includes(event.originalValue))
|
||||||
{
|
{
|
||||||
let index = this.value.indexOf(event.originalValue);
|
let index = this.value.indexOf(event.originalValue);
|
||||||
this.value[index] = event.target.value;
|
this.value[index] = event.target.value;
|
||||||
|
@ -176,6 +176,7 @@ export class Et2Tag extends Et2Widget(SlTag)
|
|||||||
<et2-textbox value="${this.value}"
|
<et2-textbox value="${this.value}"
|
||||||
@sl-change=${this.handleChange}
|
@sl-change=${this.handleChange}
|
||||||
@blur=${this.stopEdit}
|
@blur=${this.stopEdit}
|
||||||
|
@mousedown=${e => e.stopPropagation()}
|
||||||
@click=${e => e.stopPropagation()}
|
@click=${e => e.stopPropagation()}
|
||||||
@keydown=${this.handleKeyDown}
|
@keydown=${this.handleKeyDown}
|
||||||
></et2-textbox>
|
></et2-textbox>
|
||||||
@ -199,6 +200,7 @@ export class Et2Tag extends Et2Widget(SlTag)
|
|||||||
}
|
}
|
||||||
this.getRootNode().host.hide()
|
this.getRootNode().host.hide()
|
||||||
this.isEditing = true;
|
this.isEditing = true;
|
||||||
|
this.setAttribute("isEditing", "");
|
||||||
this.requestUpdate();
|
this.requestUpdate();
|
||||||
this.updateComplete.then(() =>
|
this.updateComplete.then(() =>
|
||||||
{
|
{
|
||||||
@ -209,6 +211,7 @@ export class Et2Tag extends Et2Widget(SlTag)
|
|||||||
stopEdit()
|
stopEdit()
|
||||||
{
|
{
|
||||||
this.isEditing = false;
|
this.isEditing = false;
|
||||||
|
this.removeAttribute("isEditing");
|
||||||
let event = new Event("change", {
|
let event = new Event("change", {
|
||||||
bubbles: true
|
bubbles: true
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user