Skip to content
Snippets Groups Projects
Unverified Commit 0c4881cd authored by Walter Leibbrandt's avatar Walter Leibbrandt Committed by GitHub
Browse files

Warn when asking radio's to underline with no value (#11423)

parent 2f56666d
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,12 @@ export default class Radio extends Component {
? [UnderlinedList, UnderlinedItem]
: [NormalList, NormalItem];
if (underlined && value === undefined) {
console.warn(
"Radio can't underline selected option when no value is given.",
);
}
return (
<List {...props} vertical={vertical} showButtons={showButtons}>
{options.map((option, index) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment