I'm trying to set manually the form after some services retrieve some information, and I need to set back again to the dropdown the values (using setTimeout for practicity).
Along side are a normal selector which work accordingly to what I expected. I did the same with the p-dropdown i doesn't work at all.
It detected the change by the method onChange but again nothing happen.
https://stackblitz.com/edit/ge9bjb?file=src%2Fapp%2Fdemo%2Fdropdown-reactive-forms-demo.ts
Maybe it need some reference on the <p-dropdown>
in order to work?
There is a work around to solve this issue:
<p-dropdown>
like#dd
:@ViewChild
to read the template refenece:SetTimeout
to update the model value:That should works fine with you.