Merged PR 1820: Fix - Close dropdown after selecting a reason in add product modal

Fix - Close dropdown after selecting a reason in add product modal
This commit is contained in:
Nino Righi
2024-11-27 14:21:12 +00:00
committed by Lorenz Hilpert
parent 34e96f0751
commit a0c8035dbb

View File

@@ -40,7 +40,7 @@
<ui-icon class="ml-4" [rotate]="dropdown.opened ? '270deg' : '90deg'" icon="arrow_head"></ui-icon>
</button>
<ui-dropdown #reasonDropdown class="font-bold" yPosition="below" xPosition="after" [xOffset]="8">
<button uiDropdownItem *ngFor="let reason of returnReasons$ | async" (click)="reasonChanged(reason)">
<button uiDropdownItem *ngFor="let reason of returnReasons$ | async" (click)="reasonChanged(reason); dropdown.close()">
{{ reason }}
</button>
</ui-dropdown>