packages/cf-tables/src/TableRowLinks.js
function onRowLinkClick( event ) {
  let target = event.target;
  if ( target && target.tagName === 'A' ) {
    return;
  }
  target = closest( event.target, 'tr' );
  const link = target.querySelector( 'a' );
  if ( link ) {
    window.location = link.getAttribute( 'href' );
  }
}
function onRowLinkClick( event ) {
  let target = event.target;
  if ( target && target.tagName === 'A' ) {
    return;
  }
  target = closest( event.target, 'tr' );
  const link = target.querySelector( 'a' );
  if ( link ) {
    window.location = link.getAttribute( 'href' );
  }
}
function onRowLinkClick ( event ) { let target = event . target ; if ( target && target . tagName === 'A' ) { return ; } target = closest ( event . target , 'tr' ) ; const link = target . querySelector ( 'a' ) ; if ( link ) { window . location = link . getAttribute ( 'href' ) ; } }
Handle a click of the table.

@param {MouseEvent} event - Mouse event for click on the table.
Handle a click of the table .