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.
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('');
...
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(''); ...