Skip to content

Commit c925424

Browse files
119799: Prevent the lookup/lookup-name fields from resetting when hitting the enter key in another input field
(cherry picked from commit c8694e1)
1 parent 636c85a commit c925424

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/shared/form/builder/ds-dynamic-form-ui/models/lookup/dynamic-lookup.component.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,12 @@
9494
(scrolled)="onScroll()"
9595
[scrollWindow]="false">
9696

97-
<button class="dropdown-item disabled"
97+
<button class="dropdown-item disabled" type="button"
9898
*ngIf="optionsList && optionsList.length === 0"
99-
(click)="$event.stopPropagation(); clearFields(); sdRef.close();">{{'form.no-results' | translate}}
99+
(click)="$event.stopPropagation(); clearFields(); sdRef.close();">
100+
{{ 'form.no-results' | translate }}
100101
</button>
101-
<button class="dropdown-item lookup-item"
102+
<button class="dropdown-item lookup-item" type="button"
102103
*ngFor="let listEntry of optionsList"
103104
(click)="$event.stopPropagation(); onSelect(listEntry); sdRef.close();"
104105
title="{{ listEntry.display }}">

0 commit comments

Comments
 (0)