mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
* Api: Fix removing email tag did not properly update display
This commit is contained in:
parent
d2681ce193
commit
57c643ad8e
@ -258,6 +258,7 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
|||||||
{
|
{
|
||||||
this.value = _value;
|
this.value = _value;
|
||||||
}
|
}
|
||||||
|
this._valueUID = this.egw().uid();
|
||||||
this.requestUpdate("value");
|
this.requestUpdate("value");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1144,9 +1145,12 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
|||||||
|
|
||||||
handleTagRemove(event : SlRemoveEvent, value : string)
|
handleTagRemove(event : SlRemoveEvent, value : string)
|
||||||
{
|
{
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
// Find the tag value and remove it from current value
|
// Find the tag value and remove it from current value
|
||||||
const index = this.value.indexOf(value);
|
const index = this.value.indexOf(value);
|
||||||
this.value.splice(index, 1);
|
this.value.splice(index, 1);
|
||||||
|
this._valueUID = this.egw().uid();
|
||||||
this.requestUpdate("value");
|
this.requestUpdate("value");
|
||||||
this.dispatchEvent(new Event("change", {bubbles: true}));
|
this.dispatchEvent(new Event("change", {bubbles: true}));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user