[wp-trac] [WordPress Trac] #33846: LastPass fix disturbs input from keyboard to password box.
WordPress Trac
noreply at wordpress.org
Sun Sep 13 05:14:54 UTC 2015
#33846: LastPass fix disturbs input from keyboard to password box.
--------------------------+-----------------------------
Reporter: bulblub | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.3
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
{{{
$pass2 = $('#pass2').on( inputEvent, function () {
if ( $pass2.val().length > 0 ) {
$pass1.val( $pass2.val() );
$pass2.val('');
currentPass = '';
$pass1.trigger( 'pwupdate' );
}
} );
}}}
Restrict if #pass2 field is hidden
{{{
$pass2 = $('#pass2').on( inputEvent, function () {
if ( $pass2.val().length > 0 && $pass2.is(':hidden') ) {
$pass1.val( $pass2.val() );
$pass2.val('');
currentPass = '';
$pass1.trigger( 'pwupdate' );
}
} );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33846>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list