Ensure reveal indicator is always inserted right after the input node

This commit is contained in:
Johannes Zellner
2021-11-17 14:39:44 +01:00
parent f3f968e995
commit bf5ae85b6b

View File

@@ -31,8 +31,9 @@ angular.module('Application').directive('passwordReveal', function () {
}
});
element.parentNode.style.position = 'relative';
element.parentNode.append(eye);
element.parentNode.insertBefore(eye, element.nextSibling);
}
};
});