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

(cherry picked from commit c8694e1a87)
This commit is contained in:
Alexandre Vryghem
2024-12-07 20:58:52 +01:00
parent b25294c872
commit d3d86f4f2d

View File

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