119799: Prevent the lookup/lookup-name fields from resetting when hitting the enter key in another input field

This commit is contained in:
Alexandre Vryghem
2024-12-07 20:58:52 +01:00
parent c12a3e6da8
commit c8694e1a87

View File

@@ -94,11 +94,12 @@
(scrolled)="onScroll()" (scrolled)="onScroll()"
[scrollWindow]="false"> [scrollWindow]="false">
<button class="dropdown-item disabled" <button class="dropdown-item disabled" type="button"
*ngIf="optionsList && optionsList.length === 0" *ngIf="optionsList && optionsList.length === 0"
(click)="$event.stopPropagation(); clearFields(); sdRef.close();">{{'form.no-results' | translate}} (click)="$event.stopPropagation(); clearFields(); sdRef.close();">
{{ 'form.no-results' | translate }}
</button> </button>
<button class="dropdown-item lookup-item" <button class="dropdown-item lookup-item" type="button"
*ngFor="let listEntry of optionsList" *ngFor="let listEntry of optionsList"
(click)="$event.stopPropagation(); onSelect(listEntry); sdRef.close();" (click)="$event.stopPropagation(); onSelect(listEntry); sdRef.close();"
title="{{ listEntry.display }}"> title="{{ listEntry.display }}">