Merge pull request #18708 from woocommerce/fix/18704
Allow devs to add 'no-link' class to elements to prevent order view link being triggered on row click
This commit is contained in:
commit
664aa282d3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2044,9 +2044,12 @@ ul.wc_coupon_list_block {
|
|||
tbody tr {
|
||||
border-top: 1px solid #f5f5f5;
|
||||
}
|
||||
tbody tr:hover:not(.status-trash) td {
|
||||
tbody tr:hover:not(.status-trash):not(.no-link) td {
|
||||
cursor: pointer;
|
||||
}
|
||||
.no-link {
|
||||
cursor: default !important;
|
||||
}
|
||||
|
||||
// Columns.
|
||||
td,
|
||||
|
|
|
@ -18,7 +18,7 @@ jQuery( function( $ ) {
|
|||
* Click a row.
|
||||
*/
|
||||
WCOrdersTable.prototype.onRowClick = function( e ) {
|
||||
if ( $( e.target ).filter( 'a' ).length ) {
|
||||
if ( $( e.target ).filter( 'a, a *, .no-link, .no-link *' ).length ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue