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
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())