Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus doesn't work with password fields in IE9 #34

Open
deopard opened this issue Jan 21, 2016 · 1 comment
Open

Focus doesn't work with password fields in IE9 #34

deopard opened this issue Jan 21, 2016 · 1 comment

Comments

@deopard
Copy link

deopard commented Jan 21, 2016

Since the plugin generates a text input for masking when polyfilling password input placeholder, focusing the original empty password input field won't be shown to the user.

@cvn
Copy link
Owner

cvn commented Feb 19, 2016

Thanks for reporting this issue. I can't think of an elegant solution right now, but here's a workaround if it's useful for you. This relies on the internal implementation of angular-shims-placeholder, so it's kinda fragile, but it would work.

if (elem.hasClass('ng-hide')) {
    // handle focusing empty angular-shims-placeholder password inputs
    $(elem).prev('.empty').focus();
} else {
    $(elem).focus();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants