RadioButton, ToggleButton: Warning: Invalid DOM property readonly
. Did you mean readOnly
?
#6186
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
Both components RadioButton and ToggleButton (maybe others?) reference lowercase 'readonly' but React uses camel case readOnly as props.
Warning is displayed while runnin jest tests (laso when running react in dev. mode)
Reproducer
No response
PrimeReact version
10.5.3
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Warning: Invalid DOM property
readonly
. Did you meanreadOnly
?at input
at div
at eval (webpack-internal:///./components/lib/radiobutton/RadioButton.js:24:83)
at div
Warning: Invalid DOM property
readonly
. Did you meanreadOnly
?at input
at div
at D:\onetest-server\frontend\node_modules\primereact\togglebutton*togglebutton*.cjs.js:146:26
at div
Expected behavior
No response
The text was updated successfully, but these errors were encountered: