Skip to content

Commit f7183fc

Browse files
committed
Add empty handler to suppress React controllability warning
1 parent e1602cb commit f7183fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/radio-button/internal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export default React.forwardRef(function RadioButton(
7272
value={value}
7373
checked={checked}
7474
aria-disabled={readOnly && !disabled ? 'true' : undefined}
75+
// empty handler to suppress React controllability warning
76+
onChange={() => {}}
7577
/>
7678
)}
7779
onClick={() => {

0 commit comments

Comments
 (0)