windows 8 - How can I give focus to WinJS.UI.settingsFlyout after animation? -
i'm invoking winjs.ui.settingsflyout element via javascript using winjs. inside html element of settingsflyout, have text input field receive focus after animation of flyout occurs. i've tried use jquery's .focus() method, not work because not think flyout focused after completes animation. have click twice on input field begin typing. click once flyout in focus, , click time field in focus. quite annoying. there way implement auto focusing of input fields within winjs.ui.settingsflyout?
have tried?
settingsflyout.addeventlistener("aftershow", function(){ $('#inputid').focus(); });
Comments
Post a Comment