Focus on inputs when clicked instead of sorting
This commit is contained in:
parent
06c37ae772
commit
eea518dda2
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue