Skip to content

Commit

Permalink
Merge pull request #1198 from securityscorecard/fix-listview-button-type
Browse files Browse the repository at this point in the history
bug(ListView): Add type="button" to ListViewRowContent button children. NOTICKET
  • Loading branch information
Negan1911 authored Nov 25, 2024
2 parents 7969e4e + 4e8d5d0 commit 516c755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ListView/ListViewRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function ListViewRow<D>({
{...(areItemsClickable
? {
as: 'button',
type: 'button',
onClick: () => {
setActiveRowId(row.id);
options.onRowClick({ row: row.original });
Expand Down

0 comments on commit 516c755

Please sign in to comment.