You need to sign in to do that
Don't have an account?
Chicloud
lightning:inputRichText.focus.. it is possible?
Pretty simple.. after the component is rendered set focus to the first field which is the RTE.. A common user request..
lightning:inputRichText$controller$focus [Cannot read property 'focus' of null]
Can do this is js or jquery in 2 seconds but trying to figure out the locker service friend way..
Thanks!
<lightning:inputRichText value="{!v.svcNote.Body}" aura:id="inputRT"/> doneRendering : function(cmp, event, helper) { { try { cmp.find("inputRT").focus(); } catch (e) { console.error('grrrrrr cant even focus on an rte='+e); }yields in the console...
lightning:inputRichText$controller$focus [Cannot read property 'focus' of null]
Can do this is js or jquery in 2 seconds but trying to figure out the locker service friend way..
Thanks!