Skip to content

Commit 7a528ce

Browse files
authored
Fix #7849: RadioButton readonly to readOnly (#7869)
1 parent f2516cb commit 7a528ce

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

components/lib/radiobutton/RadioButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const RadioButton = React.memo(
2626
};
2727

2828
const onChange = (event) => {
29-
if (props.disabled || props.readonly) {
29+
if (props.disabled || props.readOnly) {
3030
return;
3131
}
3232

@@ -136,7 +136,7 @@ export const RadioButton = React.memo(
136136
onBlur: onBlur,
137137
onChange: onChange,
138138
disabled: props.disabled,
139-
readOnly: props.readonly,
139+
readOnly: props.readOnly,
140140
required: props.required,
141141
tabIndex: props.tabIndex,
142142
className: cx('input'),

components/lib/radiobutton/radiobutton.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export interface RadioButtonProps extends Omit<React.DetailedHTMLProps<React.Inp
116116
* When present, it specifies that an input field is read-only.
117117
* @default false
118118
*/
119-
readonly?: boolean | undefined;
119+
readOnly?: boolean | undefined;
120120
/**
121121
* When present, it specifies that an input field must be filled out before submitting the form.
122122
* @defaultValue false

0 commit comments

Comments
 (0)