diff --git a/src/components/Radio/README.md b/src/components/Radio/README.md index a4dbd8d0..63bf1edc 100644 --- a/src/components/Radio/README.md +++ b/src/components/Radio/README.md @@ -281,8 +281,8 @@ It's possible to disable just some options or the whole set. In addition to the options below in the [component's API](#api) section, you can specify [React synthetic events] or you can **add whatever HTML attribute you like.** All attributes that don't interfere with the API are forwarded to -the native HTML ``. This enables making the component interactive and helps -to improve its accessibility. +the native HTML `` elements. This enables making the component +interactive and helps to improve its accessibility. 👉 Refer to the MDN reference for the full list of supported attributes of the [radio] input type. diff --git a/src/components/Radio/Radio.jsx b/src/components/Radio/Radio.jsx index d77a064a..67f4eb78 100644 --- a/src/components/Radio/Radio.jsx +++ b/src/components/Radio/Radio.jsx @@ -26,7 +26,6 @@ export const Radio = ({ return (
` element. This is a placeholder to prevent React from - // showing the warning about uncontrolled input: "You provided a `checked` prop to a form field - // without an `onChange` handler." - onChange={() => {}} type="radio" value={option.value} />