Skip to content

Commit

Permalink
fix(DataView): Allow rowClick on Tr as well
Browse files Browse the repository at this point in the history
  • Loading branch information
fhlavac committed Nov 1, 2024
1 parent 7d5841a commit 3ad2ae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const RepositoriesTable: React.FunctionComponent<RepositoriesTableProps> = ({ se
const rows = useMemo(() => {
const handleRowClick = (event, repo: Repository | undefined) => {
// prevents drawer toggle on actions or checkbox click
event.target.matches('td') && trigger(EventTypes.rowClick, repo);
(event.target.matches('td') || event.target.matches('tr')) && trigger(EventTypes.rowClick, repo);
};

return repositories.map(repo => ({
Expand Down
4 changes: 2 additions & 2 deletions packages/module/patternfly-docs/generated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ module.exports = {
'/extensions/data-view/components/react': {
id: "Components",
title: "Components",
toc: [{"text":"Data view toolbar"},[{"text":"Basic toolbar example"}],{"text":"Data view table"},[{"text":"Rows and columns customization"},{"text":"Tree table example"},{"text":"Empty state example"}]],
examples: ["Basic toolbar example","Rows and columns customization","Tree table example","Empty state example"],
toc: [{"text":"Data view toolbar"},[{"text":"Basic toolbar example"},{"text":"Actions configuration"},{"text":"Actions example"}],{"text":"Data view table"},[{"text":"Rows and columns customization"},{"text":"Tree table example"},{"text":"Empty state example"},{"text":"Error state example"},{"text":"Loading state example"}]],
examples: ["Basic toolbar example","Actions example","Rows and columns customization","Tree table example","Empty state example","Error state example","Loading state example"],
section: "extensions",
subsection: "Data view",
source: "react",
Expand Down

0 comments on commit 3ad2ae4

Please sign in to comment.