+ Start a Discussion
vinay maladkar 11vinay maladkar 11 

Lightning : How do I set/out focus on UI:InputText

Hi,
I have a requirement to set focus and out focus for an UI:inputIText field on click of a button in lightning component. How I can achieve this?

I tried -  component.find('myText').element().blur();
but this does not work.

Thanks in advance,
Vinay
Karthik KKarthik K
Using above methid the event object seems to be undefined. Any workarounds to get the event object (event.getParams())