I noticed that focusTab in utils.js get executed once on page load. But because it is an anonymous function you cannot call it again when you add elements to the DOM. In my case an ajax 'account registration modal' gets loaded with the 'Password Visibility Control' component. I think my case is not that unique so maybe it is worth considering changing this to a named function. Or if there is even a better way to do this I am glad to hear it.
var tabFocus;
(tabFocus = function() {
...
})();
call it in other functions (re-attach event listeners):
I noticed that focusTab in utils.js get executed once on page load. But because it is an anonymous function you cannot call it again when you add elements to the DOM. In my case an ajax 'account registration modal' gets loaded with the 'Password Visibility Control' component. I think my case is not that unique so maybe it is worth considering changing this to a named function. Or if there is even a better way to do this I am glad to hear it.
call it in other functions (re-attach event listeners):