RadioButton Issue with PrimeNG 10 & Angular 10

UI Components for Angular
Post Reply
steffenwaechter81
Posts: 2
Joined: 14 Sep 2020, 12:11

14 Sep 2020, 14:44

Hello,

With Angular 10.1.0 und PrimeNG 10 radio buttons are not working as expected. Example:

<div>
<div class="p-field-radiobutton">
<p-radioButton name="testgruppe" value="Wert1" label="Wert 1"></p-radioButton>
</div>
<div class="p-field-radiobutton">
<p-radioButton name="testgruppe" value="Wert2" label="Wert 2"></p-radioButton>
</div>
</div>

If I select the first radio button it is marked as selected. Then I select the second and it is marked as selected too but the first stays also selected.

Configuration:

"dependencies": {
"@angular/animations": "~10.1.0",
"@angular/common": "~10.1.0",
"@angular/compiler": "~10.1.0",
"@angular/core": "~10.1.0",
"@angular/forms": "~10.1.0",
"@angular/platform-browser": "~10.1.0",
"@angular/platform-browser-dynamic": "~10.1.0",
"@angular/router": "~10.1.0",
"primeicons": "^4.0.0",
"primeng": "^10.0.0",
"rxjs": "~6.6.0",
"tslib": "^2.0.0",
"zone.js": "~0.10.2"
},

"styles": [
"node_modules/primeicons/primeicons.css",
"node_modules/primeng/resources/themes/saga-blue/theme.css",
"node_modules/primeng/resources/primeng.min.css"
],

Best regards,

Steffen

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests