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
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
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 14, 2022
Describe the bug
The nature of the radio button's onChange event is that they should call the onChange event only when its state is actually changed.
Reproducer
https://codesandbox.io/s/radio-bux-7m27iq-7m27iq
PrimeReact version
8.7.2
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Click on the RadioButton circle element. The label works as expected.
Expected behavior
When the RadioButton is clicked multiple times and if its state is "checked" - it should not call onChange.
The text was updated successfully, but these errors were encountered: