PrimeNg dropdown assigning visual default value to first item in the list #429
-
According to the documentation, the Angular Dropdown component should NOT assign a default value unless specified. My dropdowns are assigning the first item in my list of options as the default item, instead of displaying the placeholder. The "assignment" is smoke and mirrors as well, because when I log out the values of my form controls, they are null to begin with. Here is my code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, You should set |
Beta Was this translation helpful? Give feedback.
Hi,
You should set
autoDisplayFirst
property tofalse
. It'strue
by default and it displays the first option automatically.