function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jeffrey Clark 32Jeffrey Clark 32 

When using variant="label-hidden" on lightning Radio Group I get an assertion error:

Runtime error:
This page has an error. You might just need to refresh it. Assertion Failed!: "variant" must either be a public property of lightningRadioGroup or a global HTML attribute : false Failing descriptor: {c:AddProducts}
 
<lightning:radioGroup aura:id="NonAdmittedPaper" 
                                    name="NonAdmittedPaperButtonGroup"
                                    label="Will the products be written on Non-Admitted paper?"
                                    options="{! v.YesNoOptions }" variant="label-hidden"
                                    value="{! v.NonAdmittedPaper }" type="button"  />
If I remove variant="label-hidden" it worksOk.
I think this is a bug. It show variant in the developers guide.

Jeff
 
GhanshyamChoudhariGhanshyamChoudhari
Click on Bundle Version Settings and check if you are using  API Version  42