diff --git a/src/components/RadioButton/RadioButton.js b/src/components/RadioButton/RadioButton.js index 39c501f9b..42b8ff884 100755 --- a/src/components/RadioButton/RadioButton.js +++ b/src/components/RadioButton/RadioButton.js @@ -100,7 +100,7 @@ class RadioButton extends React.Component { } export default (() => { - const forwardRef = (props, ref) => ; + const forwardRef = (props, ref) => ; forwardRef.displayName = 'RadioButton'; return React.forwardRef(forwardRef); })(); diff --git a/src/components/RadioButton/RadioButton.stories.js b/src/components/RadioButton/RadioButton.stories.js index ae0aecd57..d768051b0 100644 --- a/src/components/RadioButton/RadioButton.stories.js +++ b/src/components/RadioButton/RadioButton.stories.js @@ -17,6 +17,8 @@ export const Regular = (args) => ; Regular.args = { labelText: 'Radio button', + value:'radio0', + name:'radio0' }; const description = ` @@ -32,10 +34,10 @@ Regular.story = { }; export const VerticalGrouping = (args) => { - const [gender, setgender] = useState(''); + const [gender, setgender] = useState('female'); const handleOnchange = (e) => { - setgender(e); + setgender(e.target.value); }; return ( @@ -46,29 +48,26 @@ export const VerticalGrouping = (args) => { vertical>