We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dd3eeb commit 17d0dbaCopy full SHA for 17d0dba
app/code/Magento/Customer/view/frontend/web/js/show-password.js
@@ -39,11 +39,11 @@ define([
39
* @private
40
*/
41
_showPassword: function () {
42
- if ($(this.options.passwordSelector).attr("type") == this.options.passwordInputType) {
43
- $(this.options.passwordSelector).attr("type", this.options.textInputType);
44
- } else {
45
- $(this.options.passwordSelector).attr("type", this.options.passwordInputType);
46
- }
+ var passwordField = this.options.passwordSelector;
+ $(passwordField).attr(
+ "type",
+ ($(passwordField).attr("type") == this.options.passwordInputType) ? this.options.textInputType : this.options.passwordInputType
+ );
47
}
48
});
49
0 commit comments