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">
I encountered the same issue today and I could only solve it with css magic:
::ng-deep p-dropdown.ng-untouched.ng-invalid.ng-dirty {
.p-dropdown {
border-color: #ced4da;
}
}
I hope this helps.