Skip to content

Commit 3ad2ae4

Browse files
committed
fix(DataView): Allow rowClick on Tr as well
1 parent 7d5841a commit 3ad2ae4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/module/patternfly-docs/content/extensions/data-view/examples/EventsContext/EventsExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const RepositoriesTable: React.FunctionComponent<RepositoriesTableProps> = ({ se
9090
const rows = useMemo(() => {
9191
const handleRowClick = (event, repo: Repository | undefined) => {
9292
// prevents drawer toggle on actions or checkbox click
93-
event.target.matches('td') && trigger(EventTypes.rowClick, repo);
93+
(event.target.matches('td') || event.target.matches('tr')) && trigger(EventTypes.rowClick, repo);
9494
};
9595

9696
return repositories.map(repo => ({

packages/module/patternfly-docs/generated/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ module.exports = {
4949
'/extensions/data-view/components/react': {
5050
id: "Components",
5151
title: "Components",
52-
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"}]],
53-
examples: ["Basic toolbar example","Rows and columns customization","Tree table example","Empty state example"],
52+
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"}]],
53+
examples: ["Basic toolbar example","Actions example","Rows and columns customization","Tree table example","Empty state example","Error state example","Loading state example"],
5454
section: "extensions",
5555
subsection: "Data view",
5656
source: "react",

0 commit comments

Comments
 (0)