Focus on inputs when clicked instead of sorting

This commit is contained in:
claudiulodro 2018-01-03 12:10:08 -08:00
parent 06c37ae772
commit eea518dda2
1 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,10 @@ jQuery( function ( $ ) {
ui.item.removeAttr( 'style' );
}
});
// Focus on inputs within the table if clicked instead of trying to sort.
$( '.wc_input_table.sortable tbody input' ).on( 'click', function() {
$( this ).focus();
} );
$( '.wc_input_table .remove_rows' ).click( function() {
var $tbody = $( this ).closest( '.wc_input_table' ).find( 'tbody' );