Skip to content

Commit 7729ed1

Browse files
author
Nina Benite
committed
IndexTable: checkbox onmouseleave
1 parent 2627b5f commit 7729ed1

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.changeset/cool-mice-worry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris-glints': minor
3+
---
4+
5+
IndexTable checkbox row onmouseleave

polaris-react/src/components/IndexTable/components/Row/Row.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export interface RowProps {
2424
onNavigation?(id: string): void;
2525
onClick?(): void;
2626
checkbox?: React.ReactNode;
27-
onMouseEnterCheckboxCell?(): void;
27+
onMouseOverCheckboxCell?(): void;
28+
onMouseLeaveCheckboxCell?(): void;
2829
}
2930

3031
export const Row = memo(function Row({
@@ -38,7 +39,8 @@ export const Row = memo(function Row({
3839
onNavigation,
3940
onClick,
4041
checkbox,
41-
onMouseEnterCheckboxCell,
42+
onMouseOverCheckboxCell,
43+
onMouseLeaveCheckboxCell,
4244
}: RowProps) {
4345
const {selectable, selectMode, condensed} = useIndexRow();
4446
const onSelectionChange = useIndexSelectionChange();
@@ -147,7 +149,8 @@ export const Row = memo(function Row({
147149
const checkboxMarkup = selectable ? (
148150
<td
149151
className="Polaris-IndexTable__TableCell"
150-
onMouseEnter={onMouseEnterCheckboxCell}
152+
onMouseOver={onMouseOverCheckboxCell}
153+
onMouseLeave={onMouseLeaveCheckboxCell}
151154
>
152155
{checkbox}
153156
</td>

0 commit comments

Comments
 (0)