morse-react-tables
Advanced tools
Comparing version 3.1.0-alpha.7 to 3.1.1
@@ -42,3 +42,3 @@ import { SortDirection, Table } from "morse-react"; | ||
/** Event handler attached to each `tr` element (with the exception of the heading row) */ | ||
onRowClick?: (item: T) => void; | ||
onRowClick?: (item: T, clickEvent: React.MouseEvent<HTMLTableRowElement>) => void; | ||
highlightRowOnClick?: boolean; | ||
@@ -45,0 +45,0 @@ /** |
@@ -254,3 +254,3 @@ "use strict"; | ||
else { | ||
var handleOnClick = function () { | ||
var handleOnClick = function (clickEvent) { | ||
var _a; | ||
@@ -261,3 +261,3 @@ if (highlightRowOnClick) { | ||
if (onRowClick) { | ||
onRowClick(item); | ||
onRowClick(item, clickEvent); | ||
} | ||
@@ -264,0 +264,0 @@ // Tell plugins that this row has been clicked |
{ | ||
"name": "morse-react-tables", | ||
"version": "3.1.0-alpha.7", | ||
"version": "3.1.1", | ||
"description": "Patterns for building tables", | ||
@@ -20,4 +20,4 @@ "repository": { | ||
"@types/react-dom": "^18.0.0", | ||
"morse-css": "^3.0.0", | ||
"morse-react": "^3.0.0", | ||
"morse-css": "3.0.5", | ||
"morse-react": "3.0.8", | ||
"react": "^18.0.0", | ||
@@ -46,3 +46,3 @@ "react-dom": "^18.0.0", | ||
], | ||
"gitHead": "e1f6da1c3ad08829312b4e281ac9c073da65a571" | ||
"gitHead": "706813b29f727e550b73ecdd5cf44a1786a4067c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
111489
2379
0