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
Greg SawersGreg Sawers 

Lightning ui:inputRadio documentation incorrect?

Hi,

I was recently reading through some of the Lightning UI component documentation and found what I believe to be an error in the documentation.

When describing an example controller, the documentation uses the line 
evt.source.get("v.label");
however when I use this example in my own org it will not get the source correctly. Instead using 
event.getSource().get('v.label')
will correctly get the label from the source. Can anyone advise me why this might be or if the functionality changed and the documentation wasn't updated?

Thanks
_Zach Boyd_Zach Boyd
I encountered this in a Lightning component that I wrote as well. I found it had to do with LockerService being enabled in my org. In order to verify you could always disable LockerService. The documentation should probably be updated to ensure it is LockerService compliant.