RadioButton - value for checked
property not changing with radio selection change
#16688
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
On selecting the radio button by clicking on label or by keyboard arrow keys, the native
checked
property of theinput[type="radio"]
does not get changed. Regardless of thearia-checked
state, the assistive technologies recognize the radio button via nativechecked
property.This relates to #16553. Fixing the
checked
property should also resolve related issue.Environment
PrimeNG v17 is being used with Angular v17. The issue also replicable on https://primeng.org/radiobutton.
Reproducer
No response
Angular version
17.3.9
PrimeNG version
17.18.11
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.16.0
Browser(s)
No response
Steps to reproduce the behavior
checked
property of the hidden input radio. It istrue
.checked
property of the hidden input radio of the newly selected radio button. It isfalse
and value ofaria-checked
istrue
. The value ofchecked
property should betrue
as well. While for the previously selected radio, the value ofchecked
property of hidden input radio is stilltrue
and value ofaria-checked
isfalse
. The value ofchecked
property should change tofalse
.Expected behavior
On selecting the radio button by clicking on label or by keyboard arrow keys, the native
checked
property of theinput[type="radio"]
should get changed.aria-checked
attribute is redundant forinput[type="radio"]
and can be removed.The text was updated successfully, but these errors were encountered: