mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02:00
Fix Et2Select.onTagClick did not work
This commit is contained in:
parent
0d5a23cb8a
commit
b82e573ad0
@ -695,6 +695,15 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected handleTagClick(event : MouseEvent)
|
||||||
|
{
|
||||||
|
if(typeof this.onTagClick == "function")
|
||||||
|
{
|
||||||
|
event.stopPropagation();
|
||||||
|
return this.onTagClick(event, event.target);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback for the intersection observer so we know when tags don't fit
|
* Callback for the intersection observer so we know when tags don't fit
|
||||||
*
|
*
|
||||||
@ -965,7 +974,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
|||||||
.value=${option.value.replaceAll("___", " ")}
|
.value=${option.value.replaceAll("___", " ")}
|
||||||
@change=${this.handleTagEdit}
|
@change=${this.handleTagEdit}
|
||||||
@dblclick=${this._handleDoubleClick}
|
@dblclick=${this._handleDoubleClick}
|
||||||
@click=${typeof this.onTagClick == "function" ? (e) => this.onTagClick(e, e.target) : nothing}
|
@mousedown=${typeof this.onTagClick == "function" ? (e) => this.handleTagClick(e) : nothing}
|
||||||
>
|
>
|
||||||
${image ?? nothing}
|
${image ?? nothing}
|
||||||
${option.getTextLabel().trim()}
|
${option.getTextLabel().trim()}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user