- Firstly I create from with initial values.
- Then call API to fill the dropdown options.
- When page loaded I notice that all dropdown have red border and have ng-dirty class before any edit from UI.
Note: I tried to make form pristine using: makeAsPristine() but nothing change.
<p-dropdown _ngcontent-fxt-c428="" formcontrolname="costCenterId" optionvalue="id" class="p-element p-inputwrapper ng-tns-c200-4 ng-untouched ng-invalid ng-star-inserted ng-dirty">