Dropdown And ControlValueAccessor

UI Components for Angular
Post Reply
wmather
Posts: 4
Joined: 16 Jul 2020, 01:36

25 Nov 2021, 02:29

Hi,

I have an issue where if I create a simple YesNo component, the dropdown is not binding to the initial value.

If I use prime 11 it works, but it fails if I just upgrade to either v12 or v13.

Have a look at this github repository: https://github.com/Wayne-Mather/PrimeDropdownBug. The main branch is v11 and all the bindings and model changes work. If you switch to the v12 branch you will now notice the initial bindings fail.

Can I please be advised what changes I need to make, if any, to get the old behaviour back?

wmather
Posts: 4
Joined: 16 Jul 2020, 01:36

30 Nov 2021, 06:20

I fixed this by using the placeholder="Select..." in my YesNo component. Don't understand why this is needed now, but it did fix my issue.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests