Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

How to trigger (ionFocus) manually from Karma unit test

$
0
0

@abhishekkanitkar wrote:

Hi,

I want to hide submit button on input focus in a login form.

I works in development mode.

When I go to test it using Karma Jasmine, I am unable to find a way to trigger ionFocus manually.

When I was using (focus) earlier, the .focus() method on actual input tag used to focus the input, but it doesn’t happen any more.

Can anyone please help me ?

Do you know how to trigger ionFocus or ionBlur manually ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>