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 794ed99 commit 2030037Copy full SHA for 2030037
core/js/jquery-showpassword.js
@@ -103,7 +103,16 @@
103
$clone.bind('blur', function() { $input.trigger('focusout'); });
104
105
setState( $checkbox, $input, $clone );
106
-
+
107
+ // set type of password field clone (type=text) to password right on submit
108
+ // to prevent browser save the value of this field
109
+ $clone.closest('form').submit(function(e) {
110
+ // .prop has to be used, because .attr throws
111
+ // an error while changing a type of an input
112
+ // element
113
+ $clone.prop('type', 'password');
114
+ });
115
116
if( callback.fn ){
117
callback.fn( callback.args );
118
}
0 commit comments