Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix missing clear button on select choices

shamoonff6d73ce1715
diff --git a/src-ui/src/app/components/common/input/select/select.component.html b/src-ui/src/app/components/common/input/select/select.component.html
index 549cd94e1..d8b4a3e1d 100644
--- a/src-ui/src/app/components/common/input/select/select.component.html
+++ b/src-ui/src/app/components/common/input/select/select.component.html
@@ -36,11 +36,16 @@
(focus)="clearLastSearchTerm()"
(clear)="clearLastSearchTerm()"
(blur)="onBlur()">
- <ng-template ng-label-tmp let-item="item">
- @if (iconField && item[iconField]) {
- <i-bs class="me-2" [name]="item[iconField]"></i-bs>
+ <ng-template ng-label-tmp let-item="item" let-clear="clear">
+ @if (multiple && !disabled) {
+ <span class="ng-value-icon left" role="button" tabindex="0" (click)="clear(item)" (keydown.enter)="clear(item)" aria-label="Remove item" i18n-aria-label>×</span>
}
- <span [title]="item[bindLabel]">{{item[bindLabel]}}</span>
+ <span class="ng-value-label" [title]="item[bindLabel]">
+ @if (iconField && item[iconField]) {
+ <i-bs class="me-2" [name]="item[iconField]"></i-bs>
+ }
+ {{item[bindLabel]}}
+ </span>
</ng-template>
<ng-template ng-option-tmp let-item="item">
@if (iconField && item[iconField]) {