cvn / angular-shims-placeholder

Angular directive to emulate the placeholder attribute on text and password input fields for old browsers, such as IE9, IE8, and IE7. Also works on textareas and html5 input types.
MIT License
63 stars 26 forks source link

Tabbing to Password field does not work #28

Closed angelaharalson closed 9 years ago

angelaharalson commented 9 years ago

Since the text field you are creating in order to show the placeholder for password type fields does not have a tabIndex, it falls to the bottom of the tabbing order. To get it to work in my app, I changed the function to get the tabIndex of the password input and set the tabIndex of the new text input to the same value: function setupPasswordPlaceholder() { var tabIndex = domElem.tabIndex; clone = angular.element(''); ...

cvn commented 9 years ago

I can confirm this bug. Thanks for reporting it!

I just pushed a fix for it. Download the latest release and try it out.