mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fix Et2Select.onTagClick did not work
This commit is contained in:
parent
569b0de351
commit
df22d23545
@ -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
|
||||
*
|
||||
@ -965,7 +974,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2WidgetWithSelect)
|
||||
.value=${option.value.replaceAll("___", " ")}
|
||||
@change=${this.handleTagEdit}
|
||||
@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}
|
||||
${option.getTextLabel().trim()}
|
||||
|
Loading…
Reference in New Issue
Block a user