mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fix issue with misaligned loading icon on tag field
This commit is contained in:
@@ -21,33 +21,32 @@
|
||||
(keydown)="preventEventsPropagation($event)"
|
||||
(keyup)="onKeyUp($event)" />
|
||||
|
||||
|
||||
<input *ngIf="model.hasAuthority"
|
||||
class="border-0 form-control-plaintext tag-input flex-grow-1 mt-1 mb-1"
|
||||
type="text"
|
||||
role="textbox"
|
||||
[attr.aria-labelledby]="'label_' + model.id"
|
||||
[(ngModel)]="currentValue"
|
||||
[attr.autoComplete]="model.autoComplete"
|
||||
[class.is-invalid]="showErrorMessages"
|
||||
[class.pl-3]="chips.hasItems()"
|
||||
[id]="id"
|
||||
[inputFormatter]="formatter"
|
||||
[name]="model.name"
|
||||
[ngbTypeahead]="search"
|
||||
[placeholder]="model.placeholder"
|
||||
[readonly]="model.readOnly"
|
||||
[resultTemplate]="rt"
|
||||
[type]="model.inputType"
|
||||
(blur)="onBlur($event)"
|
||||
(focus)="onFocus($event)"
|
||||
(change)="$event.stopPropagation()"
|
||||
(input)="onInput($event)"
|
||||
(selectItem)="onSelectItem($event)"
|
||||
(keypress)="preventEventsPropagation($event)"
|
||||
(keydown)="preventEventsPropagation($event)"
|
||||
(keyup)="onKeyUp($event)"
|
||||
#instance="ngbTypeahead"/>
|
||||
<div *ngIf="model.hasAuthority" class="position-relative right-addon">
|
||||
<i *ngIf="searching" class="fas fa-circle-notch fa-spin fa-2x fa-fw text-primary position-absolute mt-1 p-0" aria-hidden="true"></i>
|
||||
<input class="border-0 form-control-plaintext tag-input flex-grow-1 mt-1 mb-1"
|
||||
type="text"
|
||||
[attr.aria-labelledby]="'label_' + model.id"
|
||||
[(ngModel)]="currentValue"
|
||||
[attr.autoComplete]="model.autoComplete"
|
||||
[class.is-invalid]="showErrorMessages"
|
||||
[class.pl-3]="chips.hasItems()"
|
||||
[id]="id"
|
||||
[inputFormatter]="formatter"
|
||||
[name]="model.name"
|
||||
[ngbTypeahead]="search"
|
||||
[placeholder]="model.placeholder"
|
||||
[readonly]="model.readOnly"
|
||||
[resultTemplate]="rt"
|
||||
[type]="model.inputType"
|
||||
(blur)="onBlur($event)"
|
||||
(focus)="onFocus($event)"
|
||||
(change)="$event.stopPropagation()"
|
||||
(input)="onInput($event)"
|
||||
(selectItem)="onSelectItem($event)"
|
||||
(keypress)="preventEventsPropagation($event)"
|
||||
(keydown)="preventEventsPropagation($event)"
|
||||
(keyup)="onKeyUp($event)"
|
||||
#instance="ngbTypeahead"/>
|
||||
</div>
|
||||
</ds-chips>
|
||||
|
||||
|
@@ -1,8 +1,5 @@
|
||||
/* style fa-spin */
|
||||
.fa-spin {
|
||||
pointer-events: none;
|
||||
right: 0;
|
||||
}
|
||||
@import '../../../../form.component';
|
||||
|
||||
.chips-left {
|
||||
left: 0;
|
||||
padding-right: 100%;
|
||||
|
Reference in New Issue
Block a user