You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is related to #14094. I am getting at a state where both the p-dropdown placeholder and the initial value in a reactive form component are both shown at the same time.
cetincakiroglu
added
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Nov 28, 2023
We're unable to replicate your issue, if you are able to create a reproducer by using PrimeNG Issue Template or add details please edit this issue. This issue will be closed if no activities in 20 days.
Describe the bug
I think this is related to #14094. I am getting at a state where both the p-dropdown placeholder and the initial value in a reactive form component are both shown at the same time.
As seen in the screenshot here:
I think it happens because the options are being lazy loaded and the form is
patchValue()
d before the options are being populated. Something related to thelabel()
method perhaps (https://github.com/primefaces/primeng/blob/master/src/app/components/dropdown/dropdown.ts#L918C1-L922C8)Environment
I've tried it with primeng 16.6.0 and 16.7.2, and it doesn't happen
Reproducer
https://stackblitz.com/edit/qxhoel-3xpawg
Angular version
16.2.12
PrimeNG version
16.8.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.16.1
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: