[v2] login screen DOM event is not triggered


After upgrading to v2 I have a strange issue:

I am calling app.loginScreen.open shortly after page load and while the login screen comes up, the DOM event loginscreen:opened is not triggered. I have it set to animate and it does not animate as well. If I wait 1 second after page load it works fine. It seems to happen the most in Chrome. I created a test case. Could someone please have a look? Thanks!



I noticed a timeout of as little as 0 seems to fix the problem. Sure seems like a bug. Any better ideas?