Skip to content

Commit

Permalink
119799: Prevent the lookup/lookup-name fields from resetting when hit…
Browse files Browse the repository at this point in the history
…ting the enter key in another input field
  • Loading branch information
alexandrevryghem committed Dec 7, 2024
1 parent c12a3e6 commit c8694e1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,12 @@
(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}}
(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 }}">
Expand Down

0 comments on commit c8694e1

Please sign in to comment.