diff --git a/src-ui/src/app/components/common/input/tags/tags.component.html b/src-ui/src/app/components/common/input/tags/tags.component.html index 14de0f98a..4cd8a6132 100644 --- a/src-ui/src/app/components/common/input/tags/tags.component.html +++ b/src-ui/src/app/components/common/input/tags/tags.component.html @@ -17,7 +17,7 @@ (blur)="onBlur()"> - + diff --git a/src-ui/src/app/components/common/input/tags/tags.component.ts b/src-ui/src/app/components/common/input/tags/tags.component.ts index 0a4ed6fb2..6c5ea887f 100644 --- a/src-ui/src/app/components/common/input/tags/tags.component.ts +++ b/src-ui/src/app/components/common/input/tags/tags.component.ts @@ -65,7 +65,7 @@ export class TagsComponent implements OnInit, ControlValueAccessor { private _lastSearchTerm: string - getTag(id) { + getTag(id: number) { if (this.tags) { return this.tags.find((tag) => tag.id == id) } else { @@ -73,7 +73,10 @@ export class TagsComponent implements OnInit, ControlValueAccessor { } } - removeTag(id) { + removeTag(event: PointerEvent, id: number) { + // prevent opening dropdown + event.stopImmediatePropagation() + let index = this.value.indexOf(id) if (index > -1) { let oldValue = this.value