I’m encountering an issue with PrimeNG Dropdown component in version 13.4.1 where it appears to be dirty by default, even when no selections have been made.
Here’s the relevant code snippet:
<p-dropdown
[autoDisplayFirst]="false"
resetFilterOnHide="true"
id="allergyid"
formControlName="allergyid"
tooltip="Allergy Name"
styleClass="form-control"
[options]="pamAlgseverity"
optionLabel="description"
optionValue="id"
placeholder="Allergy"
[virtualScroll]="true"
[itemSize]="31"
[filter]="true"
[showClear]="true">
</p-dropdown>
I’d like to find a solution to prevent the dropdown from displaying as dirty until a user interacts with it. However, I need to stick with version 13.4.1 for this particular project and cannot upgrade or downgrade.
Any insights or suggestions on how to resolve this issue would be greatly appreciated. Thank you!
user24630860 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.