p-dropdown first option not getting selected

UI Components for Angular
Post Reply
rkshirsagar
Posts: 2
Joined: 02 Dec 2020, 15:40

15 Apr 2021, 15:18

If we select first option of prime ng dropdown onChange event not getting called.

<div class="form-group pt-1 col-12 px-2">
<label for="formGroupExampleInput" class="w-100 g-font-family-roboto">LOCALE</label>
<a (click)="showDropdown('locale')" *ngIf="isShowLocale"
class="cursor-pointer locale-link g-font-family-roboto">{{selectedLocale}}</a>
<p-dropdown *ngIf="!isShowLocale" baseZIndex="1050" styleClass="ui-column-filter" [filter]="true"
[options]="localeCollection" (onHide)="onHide('locale')" [(ngModel)]="selectedLocale" name="selectedLocale"
(onChange)="editLocale($event)" [style]="{ width: '100%' }" [dataKey]="'id'"
filterPlaceholder="Search Locale"></p-dropdown>
</div>

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests